sesman: Add /sbin to PATH for FreeBSD

to enable to execute FUSE mount program.

The place of FUSE mount programs are:

FreeBSD   : /sbin/mount_fusefs
GNU/Linux : /bin/fusermount

See also #387.
This commit is contained in:
Koichiro IWAO 2016-06-20 09:47:37 +09:00
parent dd906c3fc8
commit c0ac8251f7

View File

@ -122,7 +122,7 @@ env_set_user(char *username, char *passwd_file, int display,
{
g_clearenv();
g_setenv("SHELL", pw_shell, 1);
g_setenv("PATH", "/bin:/usr/bin:/usr/local/bin", 1);
g_setenv("PATH", "/sbin:/bin:/usr/bin:/usr/local/bin", 1);
g_setenv("USER", username, 1);
g_sprintf(text, "%d", uid);
g_setenv("UID", text, 1);