Set an error code when running unprivileged (Fabian Keil)

This commit is contained in:
jpandre 2010-01-21 08:11:27 +00:00
parent 42f7d07997
commit 897faa3e54

View File

@ -4305,6 +4305,7 @@ int main(int argc, char *argv[])
#ifndef FUSE_INTERNAL
if (getuid() && ctx->blkdev) {
ntfs_log_error("%s", unpriv_fuseblk_msg);
err = NTFS_VOLUME_NO_PRIVILEGE;
goto err2;
}
#endif