diff options
author | Eric Blake <ebb9@byu.net> | 2009-10-23 06:06:46 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-10-23 06:29:54 -0600 |
commit | c0dcf3238bb9341c03bdb7f73c1af1b3898de557 (patch) | |
tree | 297ff50ee909652a7e027251c9d85f8b16b282de /src/ln.c | |
parent | a08e13a0fbd1843c06e51707dc479116187f1243 (diff) | |
download | coreutils-c0dcf3238bb9341c03bdb7f73c1af1b3898de557.tar.xz |
build: prohibit improper use of stat and lstat
* cfg.mk (sc_prohibit_stat_macro_address): New rule.
* src/ln.c (do_link): Adjust comment to avoid false positive.
* src/stat.c (do_stat): Likewise.
* src/touch.c (main): Likewise.
Diffstat (limited to 'src/ln.c')
-rw-r--r-- | src/ln.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -138,7 +138,7 @@ do_link (const char *source, const char *dest) { /* Which stat to use depends on whether linkat will follow the symlink. We can't use the shorter - (logical ? stat : lstat) (source, &source_stats) + (logical?stat:lstat) (source, &source_stats) since stat might be a function-like macro. */ if ((logical ? stat (source, &source_stats) : lstat (source, &source_stats)) |