From: Arkadiusz Miskiewicz Date: Tue, 30 Dec 2008 17:32:08 +0000 (+0100) Subject: xfs_quota: fix EXCLUDED_FILE_TYPES macro for negation case X-Git-Tag: v3.0.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9d2d4a296a516a6ed7f8aa0fc0afe34b590b7bb;p=thirdparty%2Fxfsprogs-dev.git xfs_quota: fix EXCLUDED_FILE_TYPES macro for negation case Fix EXCLUDED_FILE_TYPES in case when someone will try to do if (!EXCLUDED_FILE_TYPES()). Reviewed-by: Christoph Hellwig --- diff --git a/quota/project.c b/quota/project.c index 7eac8e45f..b4171e551 100644 --- a/quota/project.c +++ b/quota/project.c @@ -31,11 +31,11 @@ enum { }; #define EXCLUDED_FILE_TYPES(x) \ - S_ISCHR((x)) \ + (S_ISCHR((x)) \ || S_ISBLK((x)) \ || S_ISFIFO((x)) \ || S_ISLNK((x)) \ - || S_ISSOCK((x)) + || S_ISSOCK((x))) static void project_help(void)