Fall back to nobody if user to browse files as doesn't exist

This commit is contained in:
Jamie Cameron
2019-12-07 07:13:53 -08:00
parent dd54463213
commit cd80bcae09

View File

@@ -46,6 +46,9 @@ if (&supports_users()) {
# ACL determines
$fileunix = $access{'fileunix'} || $remote_user;
@uinfo = getpwnam($fileunix);
if (!@uinfo && !$access{'fileunix'}) {
@uinfo = getpwnam("nobody");
}
if (@uinfo) {
&switch_to_unix_user(\@uinfo);
}