[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. 08ed00124d8b6b445d3b91a9aa15eec638b02f05

Clint Adams schizo at debian.org
Sun Nov 15 03:17:30 UTC 2009


The following commit has been merged in the upstream branch:
commit 767033c8eaa1781e7be67543ec77aee9fc265071
Author: Clint Adams <schizo at debian.org>
Date:   Sat Aug 2 15:11:05 2008 +0000

    libfakeroot.c: patch from Petr Salinger to fix chmod 1755 on GNU/kFreeBSD.  closes: #493196.
    
    git-archimport-id: fakeroot at packages.debian.org--fakeroot/fakeroot--main--0.0--patch-166

diff --git a/libfakeroot.c b/libfakeroot.c
index aaaa8d6..5a4c4be 100644
--- a/libfakeroot.c
+++ b/libfakeroot.c
@@ -856,6 +856,10 @@ int chmod(const char *path, mode_t mode){
   r=next_chmod(path, mode);
   if(r&&(errno==EPERM))
     r=0;
+#ifdef EFTYPE		/* available under FreeBSD kernel */
+  if(r&&(errno==EFTYPE))
+    r=0;
+#endif
   return r;
 }
 
@@ -884,6 +888,10 @@ int fchmod(int fd, mode_t mode){
   r=next_fchmod(fd, mode);
   if(r&&(errno==EPERM))
     r=0;
+#ifdef EFTYPE		/* available under FreeBSD kernel */
+  if(r&&(errno==EFTYPE))
+    r=0;
+#endif
   return r;
 }
 
@@ -916,6 +924,10 @@ int fchmodat(int dir_fd, const char *path, mode_t mode, int flags) {
   r=next_fchmodat(dir_fd, path, mode, flags);
   if(r&&(errno==EPERM))
     r=0;
+#ifdef EFTYPE		/* available under FreeBSD kernel */
+  if(r&&(errno==EFTYPE))
+    r=0;
+#endif
   return r;
 }
 #endif /* HAVE_FCHMODAT */

-- 
fakeroot



More information about the Fakeroot-commits mailing list