diff options
| author | casper <none@none> | 2005-11-09 11:19:56 -0800 |
|---|---|---|
| committer | casper <none@none> | 2005-11-09 11:19:56 -0800 |
| commit | 4bc0a2ef2b7ba50a7a717e7ddbf31472ad28e358 (patch) | |
| tree | 8076ef765d7019096fce872c8359a5345dee3160 /usr/src/cmd/ypcmd/shared | |
| parent | 205d86ae4bc9e661871ff365f59324d8c9b0108a (diff) | |
| download | illumos-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/ypcmd/shared')
| -rw-r--r-- | usr/src/cmd/ypcmd/shared/ancil.c | 4 |
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); |
