aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/cut.c7
-rw-r--r--coreutils/touch.c4
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++;