aboutsummaryrefslogtreecommitdiff
path: root/coreutils/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/stat.c')
-rw-r--r--coreutils/stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c
index 166ce4824..d58eae10e 100644
--- a/coreutils/stat.c
+++ b/coreutils/stat.c
@@ -28,7 +28,7 @@
28 28
29/* vars to control behavior */ 29/* vars to control behavior */
30#define OPT_TERSE 2 30#define OPT_TERSE 2
31#define OPT_DEREFERNCE 4 31#define OPT_DEREFERENCE 4
32static long flags; 32static long flags;
33 33
34static char const *file_type(struct stat const *st) 34static char const *file_type(struct stat const *st)
@@ -424,7 +424,7 @@ static int do_stat(char const *filename, char const *format)
424{ 424{
425 struct stat statbuf; 425 struct stat statbuf;
426 426
427 if ((flags & OPT_DEREFERNCE ? stat : lstat) (filename, &statbuf) != 0) { 427 if ((flags & OPT_DEREFERENCE ? stat : lstat) (filename, &statbuf) != 0) {
428 bb_perror_msg("cannot stat '%s'", filename); 428 bb_perror_msg("cannot stat '%s'", filename);
429 return 0; 429 return 0;
430 } 430 }