From fb9e95e6c3db7c8698d67db9b26cc529bf6d239e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 31 Jan 2003 13:52:18 +0000 Subject: [PATCH] (print_stat): Use S_ISLNK rather than an explicit test using S_IFMT and S_IFLNK. S_IFLNK may not be defined. --- src/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stat.c b/src/stat.c index 61afafb2a9..7f2c5d2a4d 100644 --- a/src/stat.c +++ b/src/stat.c @@ -448,7 +448,7 @@ print_stat (char *pformat, char m, char const *filename, void const *data) break; case 'N': strcat (pformat, "s"); - if ((statbuf->st_mode & S_IFMT) == S_IFLNK) + if (S_ISLNK (statbuf->st_mode)) { char *linkname = xreadlink (filename); if (linkname == NULL) -- 2.47.2