mount may not be in /sbin
This commit is contained in:
parent
b7c0d8b43c
commit
6f68c44a77
@ -98,7 +98,7 @@ static int do_mount (struct ENT *ent)
|
|||||||
pid_t pid;
|
pid_t pid;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
argv[0] = (char *) "/sbin/mount";
|
argv[0] = (char *) "mount";
|
||||||
argv[1] = (char *) "-o";
|
argv[1] = (char *) "-o";
|
||||||
argv[2] = ENT_OPTS (*ent);
|
argv[2] = ENT_OPTS (*ent);
|
||||||
argv[3] = (char *) "-t";
|
argv[3] = (char *) "-t";
|
||||||
@ -112,7 +112,7 @@ static int do_mount (struct ENT *ent)
|
|||||||
strerror (errno));
|
strerror (errno));
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
case 0:
|
case 0:
|
||||||
execv (argv[0], argv);
|
execvp (argv[0], argv);
|
||||||
eerror ("%s: execv: %s", applet,
|
eerror ("%s: execv: %s", applet,
|
||||||
strerror (errno));
|
strerror (errno));
|
||||||
_exit(EXIT_FAILURE);
|
_exit(EXIT_FAILURE);
|
||||||
|
Loading…
Reference in New Issue
Block a user