diff options
Diffstat (limited to 'libbb/copy_file.c')
-rw-r--r-- | libbb/copy_file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c index 49d1ec9c6..044bc3c20 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c | |||
@@ -111,6 +111,8 @@ int FAST_FUNC copy_file(const char *source, const char *dest, int flags) | |||
111 | bb_error_msg("'%s' and '%s' are the same file", source, dest); | 111 | bb_error_msg("'%s' and '%s' are the same file", source, dest); |
112 | return -1; | 112 | return -1; |
113 | } | 113 | } |
114 | if (flags & FILEUTILS_NO_OVERWRITE) /* cp -n */ | ||
115 | return 0; | ||
114 | dest_exists = 1; | 116 | dest_exists = 1; |
115 | } | 117 | } |
116 | 118 | ||