diff options
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) case 'f': /* make sure they didn't ask for two types of lists */ if (part != 0) { - error_msg_and_die("only one type of list may be specified"); + error_msg_and_die("only one type of list may be specified\n"); } part = (char)opt; decompose_list(optarg); @@ -213,8 +213,9 @@ extern int cut_main(int argc, char **argv) } if (supress_non_delimited_lines && part != 'f') { - error_msg_and_die("suppressing non-delimited lines makes sense - only when operating on fields\n"); + error_msg_and_die("suppressing non-delimited lines makes sense" + " only when operating on fields\n"); + } 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) if (create == FALSE && errno == ENOENT) return EXIT_SUCCESS; else { - error_msg_and_die("%s", strerror(errno)); + perror_msg_and_die("%s", *argv); } } close(fd); if (utime(*argv, NULL)) { - error_msg_and_die("%s", strerror(errno)); + perror_msg_and_die("%s", *argv); } argc--; argv++; |