mount command: Use nfs_error() instead of perror()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 2 Dec 2008 12:40:16 +0000 (07:40 -0500)
committerSteve Dickson <steved@redhat.com>
Tue, 2 Dec 2008 12:40:16 +0000 (07:40 -0500)
So we can ensure that error output is directed appropriately, use
nfs_error() instead of perror() in start_statd().

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/network.c

index 0ba7bdb..2231210 100644 (file)
@@ -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);