rpms/ntfs-3g/FC-6 ntfs-3g-1.328-fix-uid-gid.patch, NONE, 1.1 ntfs-3g.spec, 1.10, 1.11

Tom Callaway (spot) fedora-extras-commits at redhat.com
Wed Apr 4 22:27:23 UTC 2007


Author: spot

Update of /cvs/extras/rpms/ntfs-3g/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16176/FC-6

Modified Files:
	ntfs-3g.spec 
Added Files:
	ntfs-3g-1.328-fix-uid-gid.patch 
Log Message:

Allow non-root users to mount/umount ntfs partitions.


ntfs-3g-1.328-fix-uid-gid.patch:

--- NEW FILE ntfs-3g-1.328-fix-uid-gid.patch ---
diff -Naur ntfs-3g-1.328.orig/src/ntfs-3g.c ntfs-3g-1.328/src/ntfs-3g.c
--- ntfs-3g-1.328.orig/src/ntfs-3g.c	2007-03-27 23:09:42.000000000 +0200
+++ ntfs-3g-1.328/src/ntfs-3g.c	2007-04-03 13:57:57.000000000 +0200
@@ -1607,8 +1607,8 @@
 	
 	*ctx = (ntfs_fuse_context_t) {
 		.state = NF_FreeClustersOutdate | NF_FreeMFTOutdate,
-		.uid = geteuid(),
-		.gid = getegid(),
+		.uid = getuid(),
+		.gid = getgid(),
 		.fmask = 0,
 		.dmask = 0,
 		.streams = NF_STREAMS_INTERFACE_NONE,


Index: ntfs-3g.spec
===================================================================
RCS file: /cvs/extras/rpms/ntfs-3g/FC-6/ntfs-3g.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ntfs-3g.spec	31 Mar 2007 21:13:01 -0000	1.10
+++ ntfs-3g.spec	4 Apr 2007 22:26:50 -0000	1.11
@@ -1,7 +1,7 @@
 Name:		ntfs-3g
 Summary: 	Linux NTFS userspace driver 
 Version:	1.328
-Release:	1%{?dist}
+Release:	2%{?dist}
 License:	GPL
 Group:		System Environment/Base
 Source0:	http://www.ntfs-3g.org/%{name}-%{version}.tgz
@@ -13,6 +13,7 @@
 Provides:	ntfsprogs-fuse = %{epoch}:%{version}-%{release}
 Obsoletes:	ntfsprogs-fuse
 Provides:	fuse-ntfs-3g = %{epoch}:%{version}-%{release}
+Patch0:		ntfs-3g-1.328-fix-uid-gid.patch
 
 %description
 The ntfs-3g driver is an open source, GPL licensed, third generation 
@@ -39,6 +40,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .fix-uid-gid
 
 %build
 %configure --disable-static --disable-ldconfig
@@ -74,7 +76,7 @@
 %defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING CREDITS NEWS README
 /sbin/mount.ntfs
-/sbin/mount.ntfs-3g
+%attr(4754,root,fuse) /sbin/mount.ntfs-3g
 /sbin/mount.ntfs-fuse
 %{_bindir}/ntfs-3g
 %{_bindir}/ntfsmount
@@ -87,6 +89,9 @@
 %{_libdir}/libntfs-3g.so
 
 %changelog
+* Wed Apr  4 2007 Tom "spot" Callaway <tcallawa at redhat.com> 2:1.328-2
+- allow non-root users to mount/umount ntfs volumes (Laszlo Dvornik)
+
 * Sat Mar 31 2007 Tom "spot" Callaway <tcallawa at redhat.com> 2:1.328-1
 - bump to 1.328
 - drop patch, use --disable-ldconfig instead




More information about the scm-commits mailing list