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 9b10dda1f..c0928a5a8 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c | |||
@@ -117,6 +117,8 @@ int FAST_FUNC copy_file(const char *source, const char *dest, int flags) | |||
117 | return -1; | 117 | return -1; |
118 | } | 118 | } |
119 | #endif | 119 | #endif |
120 | if (flags & FILEUTILS_NO_OVERWRITE) /* cp -n */ | ||
121 | return 0; | ||
120 | dest_exists = 1; | 122 | dest_exists = 1; |
121 | } | 123 | } |
122 | 124 | ||