diff options
author | Jim Meyering <jim@meyering.net> | 1994-07-22 17:19:23 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-07-22 17:19:23 +0000 |
commit | fc0bbac46388dbd8f0cdb19ce0be7c7e4d5f2f97 (patch) | |
tree | 9e435accc943724566e044ff9f5c2612a520bb27 /src/who.c | |
parent | 754e4abb56dce9f33ec18d552cff575072051356 (diff) | |
download | coreutils-fc0bbac46388dbd8f0cdb19ce0be7c7e4d5f2f97.tar.xz |
* who.c (print_entry): Use SAFE_STAT.
Diffstat (limited to 'src/who.c')
-rw-r--r-- | src/who.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -62,6 +62,7 @@ #include "system.h" #include "version.h" +#include "safe-stat.h" #if !defined (UTMP_FILE) && defined (_PATH_UTMP) /* 4.4BSD. */ #define UTMP_FILE _PATH_UTMP @@ -341,7 +342,7 @@ print_entry (this) line[DEV_DIR_LEN + sizeof (this->ut_line)] = '\0'; } - if (stat (line, &stats) == 0) + if (SAFE_STAT (line, &stats) == 0) { mesg = (stats.st_mode & S_IWGRP) ? '+' : '-'; last_change = stats.st_atime; |