Message ID | 20140312032430.GA23182@thunk.org |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/misc/create_inode.c b/misc/create_inode.c index 647480c..fb6b800 100644 --- a/misc/create_inode.c +++ b/misc/create_inode.c @@ -351,9 +351,8 @@ errcode_t do_write_internal(ext2_ino_t cwd, const char *src, const char *dest) retval = ext2fs_namei(current_fs, root, cwd, dest, &newfile); if (retval == 0) { - com_err(__func__, 0, "The file '%s' already exists\n", dest); close(fd); - return retval; + return EXT2_ET_FILE_EXISTS; } retval = ext2fs_new_inode(current_fs, cwd, 010755, 0, &newfile);