diff options
author | Petr Pisar <petr.pisar@atlas.cz> | 2011-03-14 18:05:36 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-03-14 18:07:41 +0100 |
commit | bfb0f6643325937698e5b185cd1a0da1923e385f (patch) | |
tree | 7de34bb2a9883e7bfef8cf42968a9d5b2e3b8d46 | |
parent | 418a9f20ee870953790b4331327ccb24ca8f1e47 (diff) | |
download | linuxquota-bfb0f6643325937698e5b185cd1a0da1923e385f.tar.gz |
Fix check in setgraces() in setquota.c
The check was the other way around thus making setting of grace times
impossible.
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | setquota.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |