You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@locus.apache.org on 2000/04/19 23:14:21 UTC
cvs commit: apache-2.0/src/lib/apr/file_io/unix dir.c
rbb 00/04/19 14:14:21
Modified: src/lib/apr/file_io/unix dir.c
Log:
Remove APR_ENOSTAT from directory code. We should be returning errno.
Revision Changes Path
1.30 +3 -3 apache-2.0/src/lib/apr/file_io/unix/dir.c
Index: dir.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/dir.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- dir.c 2000/04/14 15:58:22 1.29
+++ dir.c 2000/04/19 21:14:20 1.30
@@ -181,7 +181,7 @@
thedir->entry->d_name, NULL);
if (stat(fname, &filestat) == -1) {
*size = -1;
- return APR_ENOSTAT;
+ return errno;
}
*size = filestat.st_size;
@@ -205,7 +205,7 @@
thedir->entry->d_name, NULL);
if (stat(fname, &filestat) == -1) {
*mtime = -1;
- return APR_ENOSTAT;
+ return errno;
}
ap_ansi_time_to_ap_time(mtime, filestat.st_mtime);
@@ -229,7 +229,7 @@
thedir->entry->d_name, NULL);
if (stat(fname, &filestat) == -1) {
*type = APR_REG;
- return APR_ENOSTAT;
+ return errno;
}
if (S_ISREG(filestat.st_mode))