diff --git a/configure.ac b/configure.ac index 7a53fc6..5623e10 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_PREREQ(2.69) +AC_PREREQ(2.63) AC_INIT(fuse-ptfs, 1.0, https://github.com/joeyhub/fuse-ptfs) AM_INIT_AUTOMAKE(fuse-ptfs, 1.0) AC_CONFIG_SRCDIR([src/fuse_ptfs.c]) diff --git a/fuse-ptfs.spec b/fuse-ptfs.spec new file mode 100644 index 0000000..1682e86 --- /dev/null +++ b/fuse-ptfs.spec @@ -0,0 +1,39 @@ +Name: fuse-ptfs +Version: 1.0.0 +Release: 1%{?dist} +Summary: Allows mounting partition tables via fuse. +License: GPL +URL: https://github.com/joeyhub/fuse-ptfs/ +Source0: fuse-ptfs-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: fuse-devel +BuildRequires: parted-devel +BuildRequires: autoconf +BuildRequires: automake +Requires: fuse +Requires: parted + +%description + +%prep +%setup -c -q + +%build +aclocal +autoconf +automake --add-missing +%configure --prefix=%{_prefix} +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%files +%defattr (-,root,root) +%{_bindir}/fuse-ptfs + +%changelog + diff --git a/src/fuse_ptfs_filesys.c b/src/fuse_ptfs_filesys.c index cecec55..3ba0995 100755 --- a/src/fuse_ptfs_filesys.c +++ b/src/fuse_ptfs_filesys.c @@ -85,6 +85,7 @@ int fuse_ptfs_filesys_getattr(const char* apPath, struct stat* apStat) return -ENOENT; // Note: I am unsure if fuse applies permissions with this or how to tie it into flags if need be. + // Note: This does not consider the permissions of the underlying file. apStat->st_mode = S_IFREG | 0600; apStat->st_nlink = 1; apStat->st_size = tpPartition->mLength;