Blob Blame Raw
From a571f710b42f5ba76b5e577607b35a9076a76ba0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Wed, 9 Mar 2011 17:52:33 +0100
Subject: [PATCH] Reverse setgrace condition

Original idea is to disallow remote grace setting. The condition
should be opposite. See
https://sourceforge.net/tracker/index.php?func=detail&aid=3202953&group_id=18136&atid=118136
---
 setquota.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/setquota.c b/setquota.c
index fe29ec2..c012908 100644
--- a/setquota.c
+++ b/setquota.c
@@ -379,7 +379,7 @@ static int setgraces(struct quota_handle **handles)
 	int i, ret = 0;
 
 	for (i = 0; handles[i]; i++) {
-		if (handles[i]->qh_ops->write_info) {
+		if (!handles[i]->qh_ops->write_info) {
 			errstr(_("Setting grace period on %s is not supported.\n"), handles[i]->qh_quotadev);
 			ret = -1;
 			continue;
-- 
1.7.4