typo in 2.4.1/fs/dquot.c

From: Vladimir V. Saveliev (vs@namesys.botik.ru)
Date: Thu Feb 15 2001 - 07:24:51 EST


Hi

The attached is a fix for typo in 2.4.1/fs/dquot.c. It is not fixed yet
in 2.4.2pre3.
This typo causes quotactl (Q_GETQUOTA & GRPQUOTA, ..) to return EPERM.

Jan Kara (jack@suse.cz) confirmed that this is really a typo and that
the fix is a right one.

Thanks,
vs


--- dquot.c.orig Wed Feb 14 04:08:26 2001
+++ dquot.c Wed Feb 14 04:09:00 2001
@@ -1536,7 +1536,7 @@
                         break;
                 case Q_GETQUOTA:
                         if (((type == USRQUOTA && current->euid != id) ||
- (type == GRPQUOTA && in_egroup_p(id))) &&
+ (type == GRPQUOTA && !in_egroup_p(id))) &&
                             !capable(CAP_SYS_RESOURCE))
                                 goto out;
                         break;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 15 2001 - 21:00:26 EST