diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-01-17 19:12:30 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-01-17 19:12:30 +0000 |
commit | 4eec24a00b715b7a72a10a4de17a06fae0c3095f (patch) | |
tree | b15a89e42939c2515b9467540f3cf983e3b60a14 /file_io | |
parent | 579df71756c2f6bc5b42adb6932fa5ea84f39c7e (diff) | |
download | libapr-4eec24a00b715b7a72a10a4de17a06fae0c3095f.tar.gz |
Fix a problem with ap_stat. We should return the platforms error code, not
an APR error if the stat function fails.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59601 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/unix/filestat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/file_io/unix/filestat.c b/file_io/unix/filestat.c index 57208046d..cf24819ba 100644 --- a/file_io/unix/filestat.c +++ b/file_io/unix/filestat.c @@ -105,7 +105,7 @@ ap_status_t ap_getfileinfo(ap_finfo_t *finfo, struct file_t *thefile) return APR_SUCCESS; } else { - return APR_ENOSTAT; + return errno; } } @@ -135,6 +135,6 @@ ap_status_t ap_stat(ap_finfo_t *finfo, const char *fname, ap_context_t *cont) return APR_SUCCESS; } else { - return APR_ENOSTAT; + return errno; } } |