[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. 08ed00124d8b6b445d3b91a9aa15eec638b02f05
Clint Adams
schizo at debian.org
Sun Nov 15 03:17:25 UTC 2009
The following commit has been merged in the upstream branch:
commit 2b9e53e1b63806ab23b12761bafe5ab761c87008
Author: Clint Adams <schizo at debian.org>
Date: Sat Jan 5 18:58:36 2008 +0000
Apply patch from Thomas Bächler to work around fakeroot's inability to handle acls by pretending that the underlying filesystem does not support acls. closes: #361306.
git-archimport-id: fakeroot at packages.debian.org--fakeroot/fakeroot--main--0.0--patch-152
diff --git a/libfakeroot.c b/libfakeroot.c
index 0d296ab..8414c85 100644
--- a/libfakeroot.c
+++ b/libfakeroot.c
@@ -57,6 +57,8 @@
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
+#include <sys/types.h>
+#include <sys/acl.h>
#if !HAVE_DECL_SETENV
extern int setenv (const char *name, const char *value, int replace);
@@ -1461,3 +1463,13 @@ int fakeroot_isdisabled(void)
{
return fakeroot_disabled;
}
+
+int acl_set_fd(int fd, acl_t acl) {
+ errno = ENOTSUP;
+ return -1;
+}
+
+int acl_set_file(const char *path_p, acl_type_t type, acl_t acl) {
+ errno = ENOTSUP;
+ return -1;
+}
diff --git a/wrapfunc.inp b/wrapfunc.inp
index 0039671..fd14c0d 100644
--- a/wrapfunc.inp
+++ b/wrapfunc.inp
@@ -123,4 +123,5 @@ unlinkat;int;(int dir_fd, const char *pathname, int flags);(dir_fd, pathname, fl
#endif /* HAVE_UNLINKAT */
#endif /* HAVE_FSTATAT */
-
+acl_set_fd;int;(int fd, acl_t acl);(fd, acl)
+acl_set_file;int;(const char *path_p, acl_type_t type, acl_t acl);(path_p, type, acl)
--
fakeroot
More information about the Fakeroot-commits
mailing list