diff options
Diffstat (limited to 'coreutils/cp.c')
-rw-r--r-- | coreutils/cp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/cp.c b/coreutils/cp.c index 59e3d2f80..cfeb19fc4 100644 --- a/coreutils/cp.c +++ b/coreutils/cp.c | |||
@@ -217,7 +217,7 @@ int cp_main(int argc, char **argv) | |||
217 | // flags, FILEUTILS_RMDEST, OPT_parents); | 217 | // flags, FILEUTILS_RMDEST, OPT_parents); |
218 | if (flags & OPT_parents) { | 218 | if (flags & OPT_parents) { |
219 | if (!(d_flags & 2)) { | 219 | if (!(d_flags & 2)) { |
220 | bb_error_msg_and_die("with --parents, the destination must be a directory"); | 220 | bb_simple_error_msg_and_die("with --parents, the destination must be a directory"); |
221 | } | 221 | } |
222 | } | 222 | } |
223 | if (flags & FILEUTILS_RMDEST) { | 223 | if (flags & FILEUTILS_RMDEST) { |
@@ -236,7 +236,7 @@ int cp_main(int argc, char **argv) | |||
236 | goto DO_COPY; /* NB: argc==2 -> *++argv==last */ | 236 | goto DO_COPY; /* NB: argc==2 -> *++argv==last */ |
237 | } | 237 | } |
238 | } else if (flags & FILEUTILS_NO_TARGET_DIR) { | 238 | } else if (flags & FILEUTILS_NO_TARGET_DIR) { |
239 | bb_error_msg_and_die("too many arguments"); | 239 | bb_simple_error_msg_and_die("too many arguments"); |
240 | } | 240 | } |
241 | 241 | ||
242 | while (1) { | 242 | while (1) { |