diff options
Diffstat (limited to 'Src/Modules/system.c')
| -rw-r--r-- | Src/Modules/system.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Modules/system.c b/Src/Modules/system.c index f1c0d7042..3c0b8421a 100644 --- a/Src/Modules/system.c +++ b/Src/Modules/system.c @@ -357,7 +357,7 @@ bin_sysopen(char *nam, char **args, Options ops, UNUSED(int func)) for (o = sizeof(openopts)/sizeof(*openopts) - 1; o >= 0 && strcasecmp(openopts[o].name, opt); o--) {} if (o < 0) { - zwarnnam(nam, "unsupported option: %s\n", opt); + zwarnnam(nam, "unsupported option: %s", opt); return 1; } #if defined(FD_CLOEXEC) && !defined(O_CLOEXEC) @@ -686,7 +686,8 @@ bin_zsystem_flock(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) else flags = O_RDWR | O_NOCTTY; if ((flock_fd = open(unmeta(args[0]), flags)) < 0) { - zwarnnam(nam, "failed to open %s for writing: %e", args[0], errno); + zwarnnam(nam, "failed to open %s for %sing: %e", args[0], + readlock ? "read" : "writ", errno); return 1; } flock_fd = movefd(flock_fd); |
