Set an error code when running unprivileged (Fabian Keil)
parent
42f7d07997
commit
897faa3e54
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue