From 4bc0a2ef2b7ba50a7a717e7ddbf31472ad28e358 Mon Sep 17 00:00:00 2001 From: casper Date: Wed, 9 Nov 2005 11:19:56 -0800 Subject: 6346636 expunge readdir_r uses from Solaris 6346809 S_IFxxx is not a bitmask but our programmers don't know --- usr/src/cmd/pack/pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/src/cmd/pack/pack.c') diff --git a/usr/src/cmd/pack/pack.c b/usr/src/cmd/pack/pack.c index c8aad347b3..9084f2dcf7 100644 --- a/usr/src/cmd/pack/pack.c +++ b/usr/src/cmd/pack/pack.c @@ -428,7 +428,7 @@ main(int argc, char *argv[]) continue; } fstat(infile, &status); - if (status.st_mode&S_IFDIR) { + if (S_ISDIR(status.st_mode)) { fprintf(stderr, gettext( "pack: %s: cannot pack a directory\n"), argv[k]); -- cgit v1.2.3