Added missing unlock_mtab() call in moutnd
This commit is contained in:
parent
c2060be9d6
commit
b8652527e0
21
nfs-utils-1.0.12-mtab-mis-unlock.patch
Normal file
21
nfs-utils-1.0.12-mtab-mis-unlock.patch
Normal file
@ -0,0 +1,21 @@
|
||||
commit b028b29dc9f4b67e55cc8e0e91d2c0e2457564ed
|
||||
Author: Steve Dickson <steved@redhat.com>
|
||||
Date: Thu May 10 16:02:15 2007 -0400
|
||||
|
||||
Added missing unlock_mtab() call in the add_mtab()
|
||||
routine.
|
||||
|
||||
Signed-off-by: Steve Dickson <steved@redhat.com>
|
||||
|
||||
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;
|
||||
}
|
@ -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 <steved@redhat.com> 1.0.12-4
|
||||
- Replace portmap dependency with an rpcbind dependency (bz 228894)
|
||||
|
Loading…
Reference in New Issue
Block a user