chiark / gitweb /
Add detect-hardlinks.sh script
[termux-packages] / packages / dpkg / statcmd_dont_chown.patch
1 diff -u -r ../dpkg-1.17.6/src/statcmd.c ./src/statcmd.c
2 --- ../dpkg-1.17.6/src/statcmd.c        2013-12-14 06:46:59.000000000 +0100
3 +++ ./src/statcmd.c     2014-02-26 08:22:05.000000000 +0100
4 @@ -155,8 +155,10 @@
5  static void
6  statdb_node_apply(const char *filename, struct file_stat *filestat)
7  {
8 +#ifndef __ANDROID__
9         if (chown(filename, filestat->uid, filestat->gid) < 0)
10                 ohshite(_("error setting ownership of `%.255s'"), filename);
11 +#endif
12         if (chmod(filename, filestat->mode))
13                 ohshite(_("error setting permissions of `%.255s'"), filename);
14  }