bjh 2003/01/02 01:33:16
Modified: file_io/os2 filestat.c
Log:
OS/2: Fill in finfo->fname, was being left uninitialized.
This gets File Info test to pass.
Revision Changes Path
1.32 +2 -0 apr/file_io/os2/filestat.c
Index: filestat.c
===================================================================
RCS file: /home/cvs/apr/file_io/os2/filestat.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- filestat.c 1 Jan 2003 00:01:42 -0000 1.31
+++ filestat.c 2 Jan 2003 09:33:15 -0000 1.32
@@ -137,6 +137,7 @@
if (rc == 0) {
FS3_to_finfo(finfo, &fstatus);
+ finfo->fname = thefile->fname;
if (finfo->filetype == APR_REG) {
if (thefile->isopen) {
@@ -171,6 +172,7 @@
if (rc == 0) {
FS3_to_finfo(finfo, &fstatus);
+ finfo->fname = fname;
if (wanted & APR_FINFO_NAME) {
ULONG count = 1;