]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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 0ba7bdb64acb940a4743ce7eebf652343d7e4fa4..223121092bedbbd7e16b8cafacaa88b63355c3b1 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);