[Slackbuilds-users] chmod invalid option -- 'h' when installing git-tools
B. Watson
urchlay at slackware.uk
Tue Apr 22 06:26:32 UTC 2025
On Tue, 22 Apr 2025, Willy Sudiarto Raharjo wrote:
>> https://slackbuilds.org/repository/15.0/development/git-tools/
>>
>> I get the above error after sudo ./git-tools.SlackBuild I checked the
>> script, but I cannot deduce what's wrong. Because -h isn't an option for
>> chmod or find.
>>
>> What do?
>
> use "su -" or "su", not "sudo"
Actually, sudo is fine for SlackBuilds, provided your user has /sbin
and /usr/sbin in $PATH. I wrote the git-tools SlackBuild, and I just
built it with sudo, with no errors.
To the OP: no idea why your chmod doesn't have -h option. I'm looking
at "man chmod" and I see:
-h, --no-dereference
affect each symbolic link, rather than the referent
Slackware 15.0 and -current both have the -h option to chmod, so your
chmod must be something else.
Check & see if you've done something like install busybox and put its
binaries in $PATH before /bin and /usr/bin, maybe? As your user, what
does "which chmod" say? Should be "/usr/bin/chmod".
More information about the SlackBuilds-users
mailing list