diff --git a/ntfs-3g-1.328-fix-uid-gid.patch b/ntfs-3g-1.328-fix-uid-gid.patch new file mode 100644 index 0000000..8a53221 --- /dev/null +++ b/ntfs-3g-1.328-fix-uid-gid.patch @@ -0,0 +1,14 @@ +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, diff --git a/ntfs-3g.spec b/ntfs-3g.spec index 0843dbb..c92b99b 100644 --- a/ntfs-3g.spec +++ b/ntfs-3g.spec @@ -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 @@ Epoch: 2 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 @@ functionality. %prep %setup -q +%patch0 -p1 -b .fix-uid-gid %build %configure --disable-static --disable-ldconfig @@ -74,7 +76,7 @@ rm -rf $RPM_BUILD_ROOT %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 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libntfs-3g.so %changelog +* Wed Apr 4 2007 Tom "spot" Callaway 2:1.328-2 +- allow non-root users to mount/umount ntfs volumes (Laszlo Dvornik) + * Sat Mar 31 2007 Tom "spot" Callaway 2:1.328-1 - bump to 1.328 - drop patch, use --disable-ldconfig instead