diff options
author | jkar8572 <jkar8572> | 2010-02-17 11:57:05 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2010-02-17 11:57:05 +0000 |
commit | e1ab37abb5d82b7bdc50c1dc214c538e21b5eb31 (patch) | |
tree | 0fe1426122d066e0efd5ecc88828d451344ed4be /quotacheck.c | |
parent | 458809b95cedcbd64334d28df53af23412a94779 (diff) |
* don't try to set inode flags when getting them failed (Michalski Wojciech)
Diffstat (limited to 'quotacheck.c')
-rw-r--r-- | quotacheck.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quotacheck.c b/quotacheck.c index 183b99c..41901f1 100644 --- a/quotacheck.c +++ b/quotacheck.c @@ -714,9 +714,9 @@ static int rename_files(struct mntent *mnt, int type) } if (ioctl(fd, EXT2_IOC_GETFLAGS, &ext2_flags) < 0) debug(FL_DEBUG, _("EXT2_IOC_GETFLAGS failed: %s\n"), strerror(errno)); - /* IMMUTABLE flag set probably because system crashed and quota was not properly - * turned off */ - if (ext2_flags & EXT2_IMMUTABLE_FL) { + else if (ext2_flags & EXT2_IMMUTABLE_FL) { + /* IMMUTABLE flag set probably because system crashed and quota + * was not properly turned off */ debug(FL_DEBUG | FL_VERBOSE, _("Quota file %s has IMMUTABLE flag set. Clearing.\n"), filename); ext2_flags &= ~EXT2_IMMUTABLE_FL; if (ioctl(fd, EXT2_IOC_SETFLAGS, &ext2_flags) < 0) { |