[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Use of chmod in gnulib
From: |
Jeffrey Walton |
Subject: |
Use of chmod in gnulib |
Date: |
Sun, 22 Mar 2020 13:17:09 -0400 |
Hi Everyone,
According to the Autoconf manual, commands like 'chmod +x' should be
avoided in favor of 'chmod a+x'. I believe the same applies to 'chmod
-w' and friends. Also see
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Usual-Tools.html.
It looks like there are some of the earlier in the gnulib sources:
$grep -IR 'chmod +' ./*
./gnulib/tests/test-set-mode-acl.sh: /bin/chmod +a
"user:daemon allow execute" tmpfile0
./gnulib/tests/test-copy-file.sh: /bin/chmod +a "user:daemon
allow execute" tmpfile0
./gnulib/tests/test-copy-file.sh: /bin/chmod +a "group:daemon
allow read" tmpfile0
./gnulib/tests/test-copy-acl.sh: /bin/chmod +a "user:daemon
allow execute" tmpfile0
./gnulib/tests/test-copy-acl.sh: /bin/chmod +a "group:daemon
allow read" tmpfile0
./gnulib/tests/test-file-has-acl.sh: /bin/chmod +a "user:daemon
allow execute" tmpfile0
./gnulib/m4/progtest.m4:chmod +x conf$$.file
./gnulib_test/gltests/test-set-mode-acl.sh: /bin/chmod +a
"user:daemon allow execute" tmpfile0
./gnulib_test/gltests/test-copy-file.sh: /bin/chmod +a
"user:daemon allow execute" tmpfile0
./gnulib_test/gltests/test-copy-file.sh: /bin/chmod +a
"group:daemon allow read" tmpfile0
./gnulib_test/gltests/test-copy-acl.sh: /bin/chmod +a
"user:daemon allow execute" tmpfile0
./gnulib_test/gltests/test-copy-acl.sh: /bin/chmod +a
"group:daemon allow read" tmpfile0
./gnulib_test/gltests/test-file-has-acl.sh: /bin/chmod +a
"user:daemon allow execute" tmpfile0
./gnulib_test/configure: chmod +x "$as_me.lineno" ||
./gnulib_test/configure:test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail=1
- Use of chmod in gnulib,
Jeffrey Walton <=