From 69d3ab133c321a38d88e8bc9e3dd36034314f7b4 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Sun, 27 Sep 1998 03:38:55 +0000 Subject: [PATCH] small tweak on last change p4raw-id: //depot/perl@1896 --- win32/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/win32.c b/win32/win32.c index aecab61..8497b67 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -636,7 +636,7 @@ win32_opendir(char *filename) return NULL; /* check to see if filename is a directory */ - if (win32_stat(filename, &sbuf) < 0) + if (win32_stat(filename, &sbuf) < 0 || !S_ISDIR(sbuf.st_mode)) return NULL; /* Get us a DIR structure */ -- 2.7.4