Merge pull request #388 from metalefty/freebsd/fuse

sesman: Add /sbin to PATH for FreeBSD
This commit is contained in:
jsorg71 2016-08-05 14:22:50 -07:00 committed by GitHub
commit 81fe939dd3

View File

@ -125,7 +125,7 @@ env_set_user(char *username, char **passwd_file, int display,
{ {
g_clearenv(); g_clearenv();
g_setenv("SHELL", pw_shell, 1); 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_setenv("USER", username, 1);
g_sprintf(text, "%d", uid); g_sprintf(text, "%d", uid);
g_setenv("UID", text, 1); g_setenv("UID", text, 1);