mirror of
git://git.sv.gnu.org/coreutils
synced 2026-06-06 07:42:21 -04:00
(print_stat): Use S_ISLNK rather than an explicit
test using S_IFMT and S_IFLNK. S_IFLNK may not be defined.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user