aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-11 13:51:06 +0000
committerRoy Marples <roy@marples.name>2008-03-11 13:51:06 +0000
commit6f68c44a77c37efc2a4f773e9c4e483ea7139125 (patch)
treea9b03bde7d539d454e8b038a0ac390ec5f4be1d3 /src/rc
parentb7c0d8b43cf29418ccb00e80352c15499972c0b8 (diff)
mount may not be in /sbin
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/fstabinfo.c4
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);