summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ypcmd/shared/ancil.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ypcmd/shared/ancil.c')
-rw-r--r--usr/src/cmd/ypcmd/shared/ancil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/ypcmd/shared/ancil.c b/usr/src/cmd/ypcmd/shared/ancil.c
index bd09a03a70..30787c4ab4 100644
--- a/usr/src/cmd/ypcmd/shared/ancil.c
+++ b/usr/src/cmd/ypcmd/shared/ancil.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -64,7 +64,7 @@ ypcheck_domain(domain)
strcat(path, domain);
if (stat(path, &filestat) != -1) {
- if ((filestat.st_mode & S_IFDIR))
+ if (S_ISDIR(filestat.st_mode))
present = TRUE;
}
return (present);