mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-27 12:03:42 +08:00
Set an error code when running unprivileged (Fabian Keil)
This commit is contained in:
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
Block a user