From 6f68c44a77c37efc2a4f773e9c4e483ea7139125 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 11 Mar 2008 13:51:06 +0000 Subject: mount may not be in /sbin --- src/rc/fstabinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rc/fstabinfo.c b/src/rc/fstabinfo.c index fa5fc201..309c6842 100644 --- a/src/rc/fstabinfo.c +++ b/src/rc/fstabinfo.c @@ -98,7 +98,7 @@ static int do_mount (struct ENT *ent) pid_t pid; int status; - argv[0] = (char *) "/sbin/mount"; + argv[0] = (char *) "mount"; argv[1] = (char *) "-o"; argv[2] = ENT_OPTS (*ent); argv[3] = (char *) "-t"; @@ -112,7 +112,7 @@ static int do_mount (struct ENT *ent) strerror (errno)); /* NOTREACHED */ case 0: - execv (argv[0], argv); + execvp (argv[0], argv); eerror ("%s: execv: %s", applet, strerror (errno)); _exit(EXIT_FAILURE); -- cgit v1.2.3