wrowe 02/04/23 20:31:46
Modified: file_io/win32 filepath.c
Log:
That's an LSTAT, not a stat. Think about it, if you are trying to figure
the proper case (or alias) you are asking for the info about the name you
provided (even if it's a link), never the info about the -target- (which
fails anyway in my fix-in-progress for Win2k Junctions).
Revision Changes Path
1.23 +1 -1 apr/file_io/win32/filepath.c
Index: filepath.c
===================================================================
RCS file: /home/cvs/apr/file_io/win32/filepath.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- filepath.c 22 Apr 2002 16:41:50 -0000 1.22
+++ filepath.c 24 Apr 2002 03:31:46 -0000 1.23
@@ -858,7 +858,7 @@
}
/* Null term for stat! */
path[keptlen + seglen] = '\0';
- if ((rv = apr_stat(&finfo, path, APR_FINFO_TYPE |
APR_FINFO_NAME, p))
+ if ((rv = apr_lstat(&finfo, path, APR_FINFO_TYPE |
APR_FINFO_NAME, p))
== APR_SUCCESS) {
size_t namelen = strlen(finfo.name);