(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:
Jim Meyering
2003-01-31 13:52:18 +00:00
parent d060450cc8
commit fb9e95e6c3
+1 -1
View File
@@ -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)