The following commit has been merged in the sid branch: commit 888a5bbbd916d4a2f3a519c1c45519e8614d1782 Author: Raphaël Hertzog <hert...@debian.org> Date: Sun Apr 3 15:27:21 2011 +0200
dpkg: don't ohshite if lutimes() fails with ENOSYS Glibc implements lutimes() on top of utimensat() which is only provided by Linux >= 2.6.22. With older kernels it returns ENOSYS. This regression was introduced by commit b3eb59cf43c286bb6c906c00ef1cdc0ec21f474d which implemented support for setting timestamps of symlinks. Reported-by: Michael Prokop <m...@debian.org> diff --git a/debian/changelog b/debian/changelog index ec09b8c..0de22f7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ dpkg (1.16.0.1) UNRELEASED; urgency=low [ Raphaël Hertzog ] * Fix regression affecting dpkg -R. Closes: #620636 + * Don't fail during unpack if the system doesn't support changing timestamps + of symlinks. Closes: #620679 -- Raphaël Hertzog <hert...@debian.org> Sun, 03 Apr 2011 15:06:32 +0200 diff --git a/src/archives.c b/src/archives.c index 0a7e0b8..9354c1e 100644 --- a/src/archives.c +++ b/src/archives.c @@ -242,7 +242,7 @@ tarobject_set_mtime(struct tar_entry *te, const char *path) if (te->type == tar_filetype_symlink) { #ifdef HAVE_LUTIMES - if (lutimes(path, tv)) + if (lutimes(path, tv) && errno != ENOSYS) ohshite(_("error setting timestamps of `%.255s'"), path); #endif } else { -- dpkg's main repository -- To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org