diff options
Diffstat (limited to 'usr/src/cmd/cmd-crypto/decrypt/decrypt.c')
| -rw-r--r-- | usr/src/cmd/cmd-crypto/decrypt/decrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/cmd-crypto/decrypt/decrypt.c b/usr/src/cmd/cmd-crypto/decrypt/decrypt.c index 8604a74e5a..e5c856387a 100644 --- a/usr/src/cmd/cmd-crypto/decrypt/decrypt.c +++ b/usr/src/cmd/cmd-crypto/decrypt/decrypt.c @@ -1161,7 +1161,7 @@ cryptoreadfile(char *filename, CK_BYTE_PTR *pdata, CK_ULONG_PTR pdatalen) return (-1); } - if (!(statbuf.st_mode & S_IFREG)) { + if (!S_ISREG(statbuf.st_mode)) { cryptoerror(LOG_STDERR, gettext( "%s not a regular file"), filename); (void) close(fd); |
