diff options
author | Roy Marples <roy@marples.name> | 2008-03-11 13:51:06 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-11 13:51:06 +0000 |
commit | 6f68c44a77c37efc2a4f773e9c4e483ea7139125 (patch) | |
tree | a9b03bde7d539d454e8b038a0ac390ec5f4be1d3 | |
parent | b7c0d8b43cf29418ccb00e80352c15499972c0b8 (diff) |
mount may not be in /sbin
-rw-r--r-- | src/rc/fstabinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |