mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
build: allow readlinkat calls
Problem reported by Bernhard Voelker in: https://lists.gnu.org/r/coreutils/2022-01/msg00026.html * cfg.mk (sc_prohibit_readlink): Remove. It’s OK to call readlinkat to determine whether a file is a symbolic link.
This commit is contained in:
6
cfg.mk
6
cfg.mk
@@ -441,12 +441,6 @@ sc_prohibit_operator_at_end_of_line:
|
||||
halt='found operator at end of line' \
|
||||
$(_sc_search_regexp)
|
||||
|
||||
# Don't use "readlink" or "readlinkat" directly
|
||||
sc_prohibit_readlink:
|
||||
@prohibit='\<readlink(at)? \(' \
|
||||
halt='do not use readlink(at); use via xreadlink or areadlink*' \
|
||||
$(_sc_search_regexp)
|
||||
|
||||
# Don't use address of "stat" or "lstat" functions
|
||||
sc_prohibit_stat_macro_address:
|
||||
@prohibit='\<l?stat '':|&l?stat\>' \
|
||||
|
||||
Reference in New Issue
Block a user