[Reproducible-commits] [dpkg] 11/40: libdpkg: Use ~S_IFMT instead of hardcoded 07777 literal in chmod() call
Jérémy Bobbio
lunar at moszumanska.debian.org
Sat May 30 09:52:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch pu/reproducible_builds
in repository dpkg.
commit c5b1985591f15294cd73229126490b35c29ce88d
Author: Guillem Jover <guillem at debian.org>
Date: Thu May 21 21:08:24 2015 +0200
libdpkg: Use ~S_IFMT instead of hardcoded 07777 literal in chmod() call
---
lib/dpkg/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dpkg/file.c b/lib/dpkg/file.c
index 7525264..57090e3 100644
--- a/lib/dpkg/file.c
+++ b/lib/dpkg/file.c
@@ -57,7 +57,7 @@ file_copy_perms(const char *src, const char *dst)
ohshite(_("unable to change ownership of target file '%.250s'"),
dst);
- if (chmod(dst, (stab.st_mode & 07777)) == -1)
+ if (chmod(dst, (stab.st_mode & ~S_IFMT)) == -1)
ohshite(_("unable to set mode of target file '%.250s'"), dst);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list