From 6c926cd1d4389657135159b7070fad292c64e790 Mon Sep 17 00:00:00 2001 From: sin Date: Sat, 15 Mar 2014 14:01:17 +0000 Subject: [PATCH] Use weprintf() instead of fprintf() for mount(8) --- mount.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mount.c b/mount.c index afcfee4..d01eecd 100644 --- a/mount.c +++ b/mount.c @@ -1,5 +1,4 @@ /* See LICENSE file for copyright and license details. */ -#include #include #include #include @@ -145,7 +144,7 @@ main(int argc, char *argv[]) endmntent(fp); fp = NULL; } else { - fprintf(stderr, "setmntent %s: %s\n", files[i], strerror(errno)); + weprintf("setmntent %s:", files[i]); } } if(!source) @@ -165,7 +164,7 @@ mountall: flags = 0; parseopts(me->mnt_opts, &flags, data, datasiz); if(mount(me->mnt_fsname, me->mnt_dir, me->mnt_type, flags, data) < 0) - fprintf(stderr, "mount: %s\n", strerror(errno)); + weprintf("mount:"); } endmntent(fp);