From d49ac7351c419da0ba12bd52ed45ac00d0c919ff Mon Sep 17 00:00:00 2001 From: jpandre Date: Thu, 21 Jan 2010 18:44:31 +0000 Subject: [PATCH] Fixed a bug disabling the Posix ACLs --- src/ntfs-3g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");