rpms/util-linux/devel util-linux-2.12p-mount-man-sync.patch, NONE, 1.1 util-linux-2.12p-sfdisk-fgets.patch, NONE, 1.1 util-linux-2.12p-vipw-perm.patch, NONE, 1.1 util-linux.spec, 1.75, 1.76
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Thu Jun 16 15:39:07 UTC 2005
Author: kzak
Update of /cvs/dist/rpms/util-linux/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv16357
Modified Files:
util-linux.spec
Added Files:
util-linux-2.12p-mount-man-sync.patch
util-linux-2.12p-sfdisk-fgets.patch
util-linux-2.12p-vipw-perm.patch
Log Message:
- fix #157656 â CRM 546998: Possible bug in vipw, changes permissions of /etc/shadow and /etc/gshadow
- fix #159339 - util-linux updates for new audit system (pam_loginuid.so added to util-linux-selinux.pamd)
- fix #159418 - sfdisk unusable - crashes immediately on invocation
- fix #157674 â sync option on VFAT mount destroys flash drives
- fix .spec file /usr/sbin/{hwclock,clock} symlinks
util-linux-2.12p-mount-man-sync.patch:
mount.8 | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
--- NEW FILE util-linux-2.12p-mount-man-sync.patch ---
--- util-linux-2.12p/mount/mount.8.sync 2005-06-16 11:54:10.727480360 +0200
+++ util-linux-2.12p/mount/mount.8 2005-06-16 12:25:07.057275336 +0200
@@ -538,7 +538,7 @@
file. The following options apply to any file system that is being
mounted (but not every file system actually honors them - e.g., the
.B sync
-option today has effect only for ext2, ext3 and ufs):
+option today has effect only for ext2, ext3, fat, vfat and ufs):
.RS
.TP
.B async
@@ -633,7 +633,8 @@
effect.
.TP
.B sync
-All I/O to the file system should be done synchronously.
+All I/O to the file system should be done synchronously. In case of media with limited number of write cycles
+(e.g. some flash drives) "sync" may cause life-cycle shortening.
.TP
.B dirsync
All directory updates within the file system should be done synchronously.
@@ -2002,11 +2003,11 @@
.PP
Some Linux file systems don't support
.B "\-o sync and \-o dirsync"
-(the ext2 and ext3 file systems
+(the ext2, ext3, fat and vfat file systems
.I do
support synchronous updates (a la BSD) when mounted with the
.B sync
-option).
+option).
.PP
The
.B "\-o remount"
util-linux-2.12p-sfdisk-fgets.patch:
sfdisk.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE util-linux-2.12p-sfdisk-fgets.patch ---
--- util-linux-2.12p/fdisk/sfdisk.c.fgets 2005-06-16 11:12:58.245354776 +0200
+++ util-linux-2.12p/fdisk/sfdisk.c 2005-06-16 11:13:19.486125688 +0200
@@ -1724,7 +1724,7 @@
fno = 0;
/* read a line from stdin */
- lp = fgets(line+2, linesize, stdin);
+ lp = fgets(line+2, linesize-2, stdin);
if (lp == NULL) {
eof = 1;
return RD_EOF;
util-linux-2.12p-vipw-perm.patch:
vipw.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
--- NEW FILE util-linux-2.12p-vipw-perm.patch ---
--- util-linux-2.12p/login-utils/vipw.c.perm 2005-06-16 10:33:46.387891456 +0200
+++ util-linux-2.12p/login-utils/vipw.c 2005-06-16 10:34:37.077185512 +0200
@@ -299,11 +299,11 @@
}
if (!is_shadow)
chmod(tmp_file, 0644);
-#if 0
+/*#if 0*/
/* if shadow file, then mode is 0600 now */
else
chmod(tmp_file, 0400);
-#endif
+/*#endif*/
pw_unlock();
}
Index: util-linux.spec
===================================================================
RCS file: /cvs/dist/rpms/util-linux/devel/util-linux.spec,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- util-linux.spec 5 Jun 2005 12:37:24 -0000 1.75
+++ util-linux.spec 16 Jun 2005 15:39:03 -0000 1.76
@@ -27,7 +27,7 @@
Summary: A collection of basic system utilities.
Name: util-linux
Version: 2.12p
-Release: 9.4
+Release: 10
License: distributable
Group: System Environment/Base
@@ -128,6 +128,12 @@
Patch187: util-linux-2.12p-fstab-man.patch
# 156597 - look - doesn't work with separators
Patch188: util-linux-2.12p-look-separator.patch
+# 157656 - CRM 546998 : Possible bug in vipw, changes permissions of /etc/shadow
+Patch189: util-linux-2.12p-vipw-perm.patch
+# 159418 â sfdisk unusable - crashes immediately on invocation
+Patch200: util-linux-2.12p-sfdisk-fgets.patch
+# 157674 â sync option on VFAT mount destroys flash drives
+Patch201: util-linux-2.12p-mount-man-sync.patch
# When adding patches, please make sure that it is easy to find out what bug # the
# patch fixes.
@@ -254,6 +260,9 @@
%patch186 -p1
%patch187 -p1
%patch188 -p1
+%patch189 -p1
+%patch200 -p1
+%patch201 -p1
%build
unset LINGUAS || :
@@ -382,7 +391,8 @@
}
ln -sf ../../sbin/hwclock ${RPM_BUILD_ROOT}/usr/sbin/hwclock
-ln -sf ../../sbin/clock ${RPM_BUILD_ROOT}/usr/sbin/clock
+# we needn't /usr/sbin/clock in 'install' section if we ignore it in 'files' section [24-Jun-2005, Karel Zak]
+#ln -sf ../../sbin/clock ${RPM_BUILD_ROOT}/usr/sbin/clock
ln -sf hwclock ${RPM_BUILD_ROOT}/sbin/clock
# We do not want dependencies on csh
@@ -394,7 +404,7 @@
rm -f $RPM_BUILD_ROOT%{_bindir}/cytune $RPM_BUILD_ROOT%{_mandir}/man8/cytune.8*
%endif
%ifarch %no_hwclock_archs
-rm -f $RPM_BUILD_ROOT/sbin/{hwclock,clock} $RPM_BUILD_ROOT%{_mandir}/man8/hwclock.8*
+rm -f $RPM_BUILD_ROOT/sbin/{hwclock,clock} $RPM_BUILD_ROOT%{_mandir}/man8/hwclock.8* $RPM_BUILD_ROOT/usr/sbin/{hwclock,clock}
%endif
%ifarch s390 s390x
rm -f $RPM_BUILD_ROOT/usr/{bin,sbin}/{fdformat,tunelp,floppy,setfdprm} $RPM_BUILD_ROOT%{_mandir}/man8/{fdformat,tunelp,floppy,setfdprm}.8*
@@ -644,6 +654,13 @@
/sbin/losetup
%changelog
+* Thu Jun 16 2005 Karel Zak <kzak at redhat.com> 2.12p-10
+- fix #157656 â CRM 546998: Possible bug in vipw, changes permissions of /etc/shadow and /etc/gshadow
+- fix #159339 - util-linux updates for new audit system (pam_loginuid.so added to util-linux-selinux.pamd)
+- fix #159418 - sfdisk unusable - crashes immediately on invocation
+- fix #157674 â sync option on VFAT mount destroys flash drives
+- fix .spec file /usr/sbin/{hwclock,clock} symlinks
+
* Wed May 4 2005 Jeremy Katz <katzj at redhat.com> - 2.12p-9.3
- rebuild against new libe2fsprogs (and libblkid) to fix cramfs auto-detection
More information about the fedora-cvs-commits
mailing list