Skip to contentSkip to conversation

typo in 2.4.1/fs/dquot.c

PATCH Vladimir V. Saveliev 1 participant 1 message Feb 15, 2001

lore
Share & tools
lore
#0 lore raw

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 ([email protected]) confirmed that this is really a typo and that the fix is a right one.

Thanks,
vs

dquot.c renamed from dquot.c.orig +1 -1
@@ -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;