From dccd572c458149a9f55a321b43091763284f52fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 25 May 2009 23:44:41 +0000 Subject: [PATCH] use S_ISDIR git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25228 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/ks_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hx509/ks_dir.c b/lib/hx509/ks_dir.c index ef07b03cecc..a627fc65a2e 100644 --- a/lib/hx509/ks_dir.c +++ b/lib/hx509/ks_dir.c @@ -70,7 +70,7 @@ dir_init(hx509_context context, return ENOENT; } - if ((sb.st_mode & S_IFDIR) == 0) { + if (!S_ISDIR(sb.st_mode)) { hx509_set_error_string(context, 0, ENOTDIR, "%s is not a directory", residue); return ENOTDIR; -- 2.11.4.GIT