diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-24 13:48:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-24 13:48:53 +0000 |
commit | 8b1cbc84fdb5d6dcba8b3e3e21af90506c8bfc2e (patch) | |
tree | 4cf70123201c43089e3e997ade668bffe76c4491 /community/kbuild/lchmod.patch | |
parent | 2e320f818729ac141b70d721a66fa8648b45c4c6 (diff) | |
download | aports-8b1cbc84fdb5d6dcba8b3e3e21af90506c8bfc2e.tar.bz2 aports-8b1cbc84fdb5d6dcba8b3e3e21af90506c8bfc2e.tar.xz |
community/kbuild: move from testing
Diffstat (limited to 'community/kbuild/lchmod.patch')
-rw-r--r-- | community/kbuild/lchmod.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/community/kbuild/lchmod.patch b/community/kbuild/lchmod.patch new file mode 100644 index 0000000000..de111867d4 --- /dev/null +++ b/community/kbuild/lchmod.patch @@ -0,0 +1,27 @@ +--- ./src/kmk/kmkbuiltin/chmod.c.orig ++++ ./src/kmk/kmkbuiltin/chmod.c +@@ -177,9 +177,9 @@ + } else + fts_options = hflag ? FTS_PHYSICAL : FTS_LOGICAL; + +- if (hflag) ++/* if (hflag) + change_mode = lchmod; +- else ++ else */ + change_mode = chmod; + + mode = *argv; +diff --git a/src/kmk/kmkbuiltin/cp_utils.c b/src/kmk/kmkbuiltin/cp_utils.c +index 1773815..a1ff924 100644 +--- a/src/kmk/kmkbuiltin/cp_utils.c ++++ b/src/kmk/kmkbuiltin/cp_utils.c +@@ -359,7 +359,7 @@ setfile(struct stat *fs, int fd) + + if (!gotstat || fs->st_mode != ts.st_mode) + if (fdval ? fchmod(fd, fs->st_mode) : +- (islink ? lchmod(to.p_path, fs->st_mode) : ++ (islink ? chmod(to.p_path, fs->st_mode) : + chmod(to.p_path, fs->st_mode))) { + warn("chmod: %s", to.p_path); + rval = 1; |