From: Chuck Lever Date: Tue, 2 Dec 2008 12:40:16 +0000 (-0500) Subject: mount command: Use nfs_error() instead of perror() X-Git-Tag: nfs-utils-1-1-5~52 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=14b0dae49afae3fcf05c19ae84829aeef2f6876e;p=nfs-utils.git mount command: Use nfs_error() instead of perror() So we can ensure that error output is directed appropriately, use nfs_error() instead of perror() in start_statd(). Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- diff --git a/utils/mount/network.c b/utils/mount/network.c index 0ba7bdb..2231210 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -710,7 +710,8 @@ int start_statd(void) execl(START_STATD, START_STATD, NULL); exit(1); case -1: /* error */ - perror("Fork failed"); + nfs_error(_("fork failed: %s"), + strerror(errno)); break; default: /* parent */ waitpid(pid, NULL,0);