tags 566026 patch
thanks

I've just hit this problem. It seems that something changed in Linux
x86_64 newfstatat/fstatat64 syscall at some point. I'm not clear on the
details, but this patch seems to fix it.

(before, chmod was calling fstatat which called newfstatat which failed;
now the fstatat hook calls fstatat64 instead)

If this is correct, then the bug would have affected x86_64 only. The
patch should apply and work against both 0.16 and 0.17.

diff -urN fakeroot-ng-0.17.orig/arch/linux/x86_64/platform_specific.h 
fakeroot-ng-0.17/arch/linux/x86_64/platform_specific.h
--- fakeroot-ng-0.17.orig/arch/linux/x86_64/platform_specific.h 2009-05-19 
03:45:43.000000000 +0100
+++ fakeroot-ng-0.17/arch/linux/x86_64/platform_specific.h      2010-03-31 
20:23:11.000000000 +0100
@@ -117,7 +117,7 @@
 #define PREF_STAT SYS_stat
 #define PREF_LSTAT SYS_lstat
 #define PREF_FSTAT SYS_fstat
-#define PREF_FSTATAT SYS_newfstatat
+#define PREF_FSTATAT SYS_fstatat64
 
 #define PREF_NOP SYS_getuid
 #define PREF_MMAP SYS_mmap



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to