fix to not use hardlinks which don't work...
[termux-packages] / packages / zsh / compaudit.patch
CommitLineData
59f0d218
FF
1Do not try to grep through /etc/group.
2
3diff -u -r ../zsh-5.0.7/Completion/compaudit ./Completion/compaudit
4--- ../zsh-5.0.7/Completion/compaudit 2013-12-19 14:35:10.000000000 -0500
5+++ ./Completion/compaudit 2015-05-16 07:49:13.324364960 -0400
6@@ -128,19 +128,20 @@
7 # by NFS group sharing with an untrustworthy machine). So we must assume
8 # that this has not happened, and pick the best group.
9
10-if (( $#_i_wdirs )); then
11- local GROUP GROUPMEM _i_pw _i_gid
12- if ((UID == EUID )); then
13- getent group $LOGNAME | IFS=: read GROUP _i_pw _i_gid GROUPMEM
14- else
15- getent group $EGID | IFS=: read GROUP _i_pw _i_gid GROUPMEM
16- fi
17-
18- if [[ $GROUP == $LOGNAME && ( -z $GROUPMEM || $GROUPMEM == $LOGNAME ) ]]
19- then
20- _i_wdirs=( ${^_i_wdirs}(N-f:g+w:^g:${GROUP}:,-f:o+w:,-^${_i_owners}) )
21- fi
22-fi
23+# NOTE: Disabled by termux, compaudit.patch:
24+#if (( $#_i_wdirs )); then
25+# local GROUP GROUPMEM _i_pw _i_gid
26+# if ((UID == EUID )); then
27+# getent group $LOGNAME | IFS=: read GROUP _i_pw _i_gid GROUPMEM
28+# else
29+# getent group $EGID | IFS=: read GROUP _i_pw _i_gid GROUPMEM
30+# fi
31+#
32+# if [[ $GROUP == $LOGNAME && ( -z $GROUPMEM || $GROUPMEM == $LOGNAME ) ]]
33+# then
34+# _i_wdirs=( ${^_i_wdirs}(N-f:g+w:^g:${GROUP}:,-f:o+w:,-^${_i_owners}) )
35+# fi
36+#fi
37
38 if [[ -f /etc/debian_version ]]
39 then