From b8652527e05377ec48b95652b35de15753e8b7ac Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Thu, 10 May 2007 20:11:57 +0000 Subject: [PATCH] Added missing unlock_mtab() call in moutnd --- nfs-utils-1.0.12-mtab-mis-unlock.patch | 21 +++++++++++++++++++++ nfs-utils.spec | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 nfs-utils-1.0.12-mtab-mis-unlock.patch diff --git a/nfs-utils-1.0.12-mtab-mis-unlock.patch b/nfs-utils-1.0.12-mtab-mis-unlock.patch new file mode 100644 index 0000000..194d355 --- /dev/null +++ b/nfs-utils-1.0.12-mtab-mis-unlock.patch @@ -0,0 +1,21 @@ +commit b028b29dc9f4b67e55cc8e0e91d2c0e2457564ed +Author: Steve Dickson +Date: Thu May 10 16:02:15 2007 -0400 + + Added missing unlock_mtab() call in the add_mtab() + routine. + + Signed-off-by: Steve Dickson + +diff --git a/utils/mount/mount.c b/utils/mount/mount.c +index 3831415..d3156b2 100644 +--- a/utils/mount/mount.c ++++ b/utils/mount/mount.c +@@ -211,6 +211,7 @@ int add_mtab(char *fsname, char *mount_point, char *fstype, int flags, char *opt + lock_mtab(); + + if ((mtab = setmntent(MOUNTED, "a+")) == NULL) { ++ unlock_mtab(); + fprintf(stderr, "Can't open " MOUNTED); + return 1; + } diff --git a/nfs-utils.spec b/nfs-utils.spec index 916a5ad..10932f8 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -50,6 +50,7 @@ Patch82: nfs-utils-1.0.12-mount-v4-errors.patch Patch83: nfs-utils-1.0.12-rmtab-ipaddr-manupdate.patch Patch84: nfs-utils-1.0.12-mountd-memleak.patch Patch85: nfs-utils-1.0.12-nfsd-macargs.patch +Patch86: nfs-utils-1.0.12-mtab-mis-unlock.patch %if %{enablefscache} Patch90: nfs-utils-1.0.9-mount-fsc.patch @@ -125,6 +126,7 @@ This package also contains the mount.nfs and umount.nfs program. %patch83 -p1 %patch84 -p1 %patch85 -p1 +%patch86 -p1 %if %{enablefscache} %patch90 -p1 %endif @@ -317,6 +319,7 @@ fi - Make sure statd uses correct uid/gid by chowning the /var/lib/nfs/statd with the rpcuser id. (bz 235216) - Correct some sanity checking in rpc.nfsd. (bz 220887) +- Added missing unlock_mtab() call in moutnd * Tue Apr 3 2007 Steve Dickson 1.0.12-4 - Replace portmap dependency with an rpcbind dependency (bz 228894)