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

epel9
Tom Callaway 18 years ago
parent f4482883de
commit f483b128e4

@ -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,

@ -1,7 +1,7 @@
Name: ntfs-3g Name: ntfs-3g
Summary: Linux NTFS userspace driver Summary: Linux NTFS userspace driver
Version: 1.328 Version: 1.328
Release: 1%{?dist} Release: 2%{?dist}
License: GPL License: GPL
Group: System Environment/Base Group: System Environment/Base
Source0: http://www.ntfs-3g.org/%{name}-%{version}.tgz Source0: http://www.ntfs-3g.org/%{name}-%{version}.tgz
@ -13,6 +13,7 @@ Epoch: 2
Provides: ntfsprogs-fuse = %{epoch}:%{version}-%{release} Provides: ntfsprogs-fuse = %{epoch}:%{version}-%{release}
Obsoletes: ntfsprogs-fuse Obsoletes: ntfsprogs-fuse
Provides: fuse-ntfs-3g = %{epoch}:%{version}-%{release} Provides: fuse-ntfs-3g = %{epoch}:%{version}-%{release}
Patch0: ntfs-3g-1.328-fix-uid-gid.patch
%description %description
The ntfs-3g driver is an open source, GPL licensed, third generation The ntfs-3g driver is an open source, GPL licensed, third generation
@ -39,6 +40,7 @@ functionality.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .fix-uid-gid
%build %build
%configure --disable-static --disable-ldconfig %configure --disable-static --disable-ldconfig
@ -74,7 +76,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING CREDITS NEWS README %doc AUTHORS ChangeLog COPYING CREDITS NEWS README
/sbin/mount.ntfs /sbin/mount.ntfs
/sbin/mount.ntfs-3g %attr(4754,root,fuse) /sbin/mount.ntfs-3g
/sbin/mount.ntfs-fuse /sbin/mount.ntfs-fuse
%{_bindir}/ntfs-3g %{_bindir}/ntfs-3g
%{_bindir}/ntfsmount %{_bindir}/ntfsmount
@ -87,6 +89,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libntfs-3g.so %{_libdir}/libntfs-3g.so
%changelog %changelog
* Wed Apr 4 2007 Tom "spot" Callaway <tcallawa@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@redhat.com> 2:1.328-1 * Sat Mar 31 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.328-1
- bump to 1.328 - bump to 1.328
- drop patch, use --disable-ldconfig instead - drop patch, use --disable-ldconfig instead

Loading…
Cancel
Save