summaryrefslogtreecommitdiff
path: root/src/touch.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-10-23 06:06:46 -0600
committerEric Blake <ebb9@byu.net>2009-10-23 06:29:54 -0600
commitc0dcf3238bb9341c03bdb7f73c1af1b3898de557 (patch)
tree297ff50ee909652a7e027251c9d85f8b16b282de /src/touch.c
parenta08e13a0fbd1843c06e51707dc479116187f1243 (diff)
downloadcoreutils-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/touch.c')
-rw-r--r--src/touch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/touch.c b/src/touch.c
index d44bd2739..11d73ce6c 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -348,7 +348,7 @@ main (int argc, char **argv)
if (use_ref)
{
struct stat ref_stats;
- /* Don't use (no_dereference ? lstat : stat) (args), since stat
+ /* Don't use (no_dereference?lstat:stat) (args), since stat
might be an object-like macro. */
if (no_dereference ? lstat (ref_file, &ref_stats)
: stat (ref_file, &ref_stats))