diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-18 03:08:29 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-18 03:08:29 +0000 |
commit | b67a9cce48df6a3d83fe70ae3a6c8ca0bd8b7afd (patch) | |
tree | cd56722ced55fd4b08049a0717cbbb9df5e9113f /coreutils | |
parent | 001b7f983a74d9cbe6322dd38b64449498897927 (diff) | |
download | busybox-w32-b67a9cce48df6a3d83fe70ae3a6c8ca0bd8b7afd.tar.gz busybox-w32-b67a9cce48df6a3d83fe70ae3a6c8ca0bd8b7afd.tar.bz2 busybox-w32-b67a9cce48df6a3d83fe70ae3a6c8ca0bd8b7afd.zip |
Add missing newlines to error messages.
git-svn-id: svn://busybox.net/trunk/busybox@1465 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/cut.c | 7 | ||||
-rw-r--r-- | coreutils/touch.c | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c index 6e0fe83fc..8b319962d 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c | |||
@@ -188,7 +188,7 @@ extern int cut_main(int argc, char **argv) | |||
188 | case 'f': | 188 | case 'f': |
189 | /* make sure they didn't ask for two types of lists */ | 189 | /* make sure they didn't ask for two types of lists */ |
190 | if (part != 0) { | 190 | if (part != 0) { |
191 | error_msg_and_die("only one type of list may be specified"); | 191 | error_msg_and_die("only one type of list may be specified\n"); |
192 | } | 192 | } |
193 | part = (char)opt; | 193 | part = (char)opt; |
194 | decompose_list(optarg); | 194 | decompose_list(optarg); |
@@ -213,8 +213,9 @@ extern int cut_main(int argc, char **argv) | |||
213 | } | 213 | } |
214 | 214 | ||
215 | if (supress_non_delimited_lines && part != 'f') { | 215 | if (supress_non_delimited_lines && part != 'f') { |
216 | error_msg_and_die("suppressing non-delimited lines makes sense | 216 | error_msg_and_die("suppressing non-delimited lines makes sense" |
217 | only when operating on fields\n"); | 217 | " only when operating on fields\n"); |
218 | |||
218 | } | 219 | } |
219 | 220 | ||
220 | if (delim != '\t' && part != 'f') { | 221 | if (delim != '\t' && part != 'f') { |
diff --git a/coreutils/touch.c b/coreutils/touch.c index 59800b2a0..1b03075e8 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c | |||
@@ -58,12 +58,12 @@ extern int touch_main(int argc, char **argv) | |||
58 | if (create == FALSE && errno == ENOENT) | 58 | if (create == FALSE && errno == ENOENT) |
59 | return EXIT_SUCCESS; | 59 | return EXIT_SUCCESS; |
60 | else { | 60 | else { |
61 | error_msg_and_die("%s", strerror(errno)); | 61 | perror_msg_and_die("%s", *argv); |
62 | } | 62 | } |
63 | } | 63 | } |
64 | close(fd); | 64 | close(fd); |
65 | if (utime(*argv, NULL)) { | 65 | if (utime(*argv, NULL)) { |
66 | error_msg_and_die("%s", strerror(errno)); | 66 | perror_msg_and_die("%s", *argv); |
67 | } | 67 | } |
68 | argc--; | 68 | argc--; |
69 | argv++; | 69 | argv++; |