Browse Source

Merge f94f82130e into 0165fb24d4

pull/178/merge
Valentin Hilbig 10 years ago
parent
commit
bfa3cb9d44
  1. 5
      .gitignore
  2. 2
      Makefile
  3. 3
      src/fs_xattr.cpp
  4. 2
      src/getxattr.cpp

5
.gitignore

@ -15,3 +15,8 @@
# Debian files
debian/files
debian/changelog
# ignore build artifacts
obj/
rpmbuild/
src/version.hpp

2
Makefile

@ -219,7 +219,7 @@ rpm-clean:
rpm: tarball
$(eval VERSION := $(shell $(GIT) describe --always --tags --dirty))
$(eval VERSION := $(subst -,_,$(VERSION)))
$(MKDIR) -p rpmbuild/{BUILD,RPMS,SOURCES}
$(MKDIR) -p rpmbuild/BUILD rpmbuild/RPMS,SOURCES rpmbuild/SOURCES
$(SED) 's/__VERSION__/$(VERSION)/g' $(TARGET).spec > \
rpmbuild/SOURCES/$(TARGET).spec
cp -ar $(TARGET)-$(VERSION).tar.gz rpmbuild/SOURCES

3
src/fs_xattr.cpp

@ -24,7 +24,10 @@
#include <stdlib.h>
#include <sys/types.h>
#ifndef WITHOUT_XATTR
#include <attr/xattr.h>
#endif
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

2
src/getxattr.cpp

@ -62,7 +62,7 @@ _lgetxattr(const string &path,
return ((rv == -1) ? -errno : rv);
#else
return -ENOSUP;
return -ENOTSUP;
#endif
}

Loading…
Cancel
Save