diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 4b3a5afc..97693164 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -4392,7 +4392,7 @@ int main(int argc, char *argv[]) if (permissions_mode) ntfs_log_info("%s, configuration type %d\n",permissions_mode, 4 + POSIXACLS*6 - KERNELPERMS*3 + CACHEING); - if ((ctx->secure_flags |= (1 << SECURITY_RAW)) + if ((ctx->secure_flags & (1 << SECURITY_RAW)) && !ctx->uid && ctx->gid) ntfs_log_error("Warning : using problematic uid==0 and gid!=0\n");