summaryrefslogtreecommitdiff
path: root/usr/src/cmd/devctl/devctl.c
diff options
context:
space:
mode:
authorcasper <none@none>2005-11-09 11:19:56 -0800
committercasper <none@none>2005-11-09 11:19:56 -0800
commit4bc0a2ef2b7ba50a7a717e7ddbf31472ad28e358 (patch)
tree8076ef765d7019096fce872c8359a5345dee3160 /usr/src/cmd/devctl/devctl.c
parent205d86ae4bc9e661871ff365f59324d8c9b0108a (diff)
downloadillumos-joyent-4bc0a2ef2b7ba50a7a717e7ddbf31472ad28e358.tar.gz
6346636 expunge readdir_r uses from Solaris
6346809 S_IFxxx is not a bitmask but our programmers don't know
Diffstat (limited to 'usr/src/cmd/devctl/devctl.c')
-rw-r--r--usr/src/cmd/devctl/devctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/devctl/devctl.c b/usr/src/cmd/devctl/devctl.c
index 7e52490ab3..5516d51f14 100644
--- a/usr/src/cmd/devctl/devctl.c
+++ b/usr/src/cmd/devctl/devctl.c
@@ -251,7 +251,7 @@ main(int argc, char *argv[])
* if the device is a logical name, get the physical name
*/
if (lstat(orig_path, &stat_buf) == 0) {
- if ((stat_buf.st_mode & S_IFLNK) == S_IFLNK) {
+ if (S_ISLNK(stat_buf.st_mode)) {
if ((pathlen = readlink(orig_path, devctl_device,
MAXPATHLEN)) == -1) {
(void) fprintf(stderr,