Package: fakeroot
Version: 1.14.4-1
Severity: important
Tags: patch

I am sorry to report that my patch adding lchmod() support was broken.
It seems to work, but in practice it is dereferencing the symlink
instead of changing the permissions of the symlink itself.

The trival patch below fixes the issue.

--- fakeroot-1.15.orig/libfakeroot.c
+++ fakeroot-1.15/libfakeroot.c
@@ -917,7 +917,7 @@ int lchmod(const char *path, mode_t mode
   if(S_ISDIR(st.st_mode))
     mode |= 0100;
 
-  r=next_chmod(path, mode);
+  r=next_lchmod(path, mode);
   if(r&&(errno==EPERM))
     r=0;
 #ifdef EFTYPE          /* available under FreeBSD kernel */

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.2-1-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages fakeroot depends on:
ii  libc0.1                       2.11.2-10  Embedded GNU C Library: Shared lib

fakeroot recommends no packages.

fakeroot suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to