[Bug 268593] lang/execline: execline-cd, execline-umask are not world-executable

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 27 Dec 2022 11:58:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268593

--- Comment #1 from sg@redu.cx ---
It is interesting to note that the modes on posix-cd and posix-umask are set
correctly.

# xzcat execline-2.9.0.0~c00593d25b.pkg | tar t -v | grep -- 'bin.*-cd'
lrwx------  0 root   wheel       0 Jul  4 08:09 /usr/local/bin/cd ->
execline-cd
-rwx------  0 root   wheel    8816 Jul  4 08:09 /usr/local/bin/execline-cd
-rwxr-xr-x  0 root   wheel   15016 Jul  4 08:09 /usr/local/bin/posix-cd

(I also checked execline-2.6.0.1~f36133a160.txz, which was the oldest package
in my cache.  Same modes.)

http://package21.nyi.freebsd.org/data/131amd64-default-qat/c610273231b4/logs/execline-2.9.0.0.log

AFAICS, the only special treatment happens here:

exec ./tools/install.sh -l execline-cd
/wrkdirs/usr/ports/lang/execline/work/stage/usr/local/bin/cd
exec ./tools/install.sh -l execline-umask
/wrkdirs/usr/ports/lang/execline/work/stage/usr/local/bin/umask

install.sh umasks to 077, so the symlink is created mode 0700.  I don't see how
that would impart any effect on the targets of these links, but it seemed too
coincidental, so I thought I'd mention it in case it is somehow related to this
problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.