From 14b0dae49afae3fcf05c19ae84829aeef2f6876e Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Tue, 2 Dec 2008 07:40:16 -0500 Subject: [PATCH] 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 --- utils/mount/network.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2