rpms/quota/devel quota-3.16-upstreampatches.patch,NONE,1.1
Ondrej Vasik
ovasik at fedoraproject.org
Wed Aug 27 13:04:32 UTC 2008
- Previous message (by thread): rpms/quota/devel quota.spec,1.44,1.45
- Next message (by thread): rpms/PackageKit/devel pk-fix-multiarch-resolve.patch, NONE, 1.1 pk-fix-pkcon-filters.patch, NONE, 1.1 .cvsignore, 1.25, 1.26 PackageKit.spec, 1.43, 1.44 sources, 1.26, 1.27 pk-fix-build-plugin.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: ovasik
Update of /cvs/extras/rpms/quota/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29383
Added Files:
quota-3.16-upstreampatches.patch
Log Message:
forgot to add the patch :(
quota-3.16-upstreampatches.patch:
--- NEW FILE quota-3.16-upstreampatches.patch ---
diff -urNp quota-tools-orig/quotacheck.c quota-tools/quotacheck.c
--- quota-tools-orig/quotacheck.c 2008-08-27 14:27:10.000000000 +0200
+++ quota-tools/quotacheck.c 2008-08-27 14:32:11.000000000 +0200
@@ -721,6 +721,19 @@ static int rename_files(struct mntent *m
}
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) {
+ 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) {
+ errstr(_("Failed to remove IMMUTABLE flag from quota file %s: %s\n"), filename, strerror(errno));
+ free(filename);
+ close(fd);
+ return -1;
+ }
+ }
close(fd);
#endif
if (flags & FL_BACKUPS) {
diff -urNp quota-tools-orig/warnquota.c quota-tools/warnquota.c
--- quota-tools-orig/warnquota.c 2007-08-23 16:05:49.000000000 +0200
+++ quota-tools/warnquota.c 2008-08-27 14:28:13.000000000 +0200
@@ -1052,8 +1052,8 @@ static void get_host_name(void)
if (uname(&uts))
die(1, _("Cannot get host name: %s\n"), strerror(errno));
- hostname = uts.nodename;
- domainname = uts.domainname;
+ hostname = sstrdup(uts.nodename);
+ domainname = sstrdup(uts.domainname);
}
int main(int argc, char **argv)
- Previous message (by thread): rpms/quota/devel quota.spec,1.44,1.45
- Next message (by thread): rpms/PackageKit/devel pk-fix-multiarch-resolve.patch, NONE, 1.1 pk-fix-pkcon-filters.patch, NONE, 1.1 .cvsignore, 1.25, 1.26 PackageKit.spec, 1.43, 1.44 sources, 1.26, 1.27 pk-fix-build-plugin.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list