wrowe 01/01/24 11:48:12
Modified: file_io/unix filestat.c
Log:
Fix someone else's typo in Unix
Revision Changes Path
1.40 +5 -5 apr/file_io/unix/filestat.c
Index: filestat.c
===================================================================
RCS file: /home/cvs/apr/file_io/unix/filestat.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- filestat.c 2001/01/24 15:48:00 1.39
+++ filestat.c 2001/01/24 19:48:11 1.40
@@ -81,11 +81,11 @@
return type;
}
-static apr_status_t fill_out_finfo(apr_finfo_t *finfo, struct stat info,
+static apr_status_t fill_out_finfo(apr_finfo_t *finfo, struct stat *info,
apr_int32_t wanted)
{
- finfo->valid = APR_FINFO_MIN | APR_FINFO_IDENT | APR_FINFO_OWNER |
- APR_FINFO_PROT;
+ finfo->valid = APR_FINFO_MIN | APR_FINFO_IDENT | APR_FINFO_NLINK
+ | APR_FINFO_OWNER | APR_FINFO_PROT;
finfo->protection = apr_unix_mode2perms(info.st_mode);
finfo->filetype = filetype_from_mode(info.st_mode);
finfo->user = info.st_uid;
@@ -121,7 +121,7 @@
if (fstat(thefile->filedes, &info) == 0) {
finfo->cntxt = thefile->cntxt;
finfo->fname = thefile->fname;
- return fill_out_finfo(finfo, info, wanted);
+ return fill_out_finfo(finfo, &info, wanted);
}
else {
return errno;
@@ -151,7 +151,7 @@
if (srv == 0) {
finfo->cntxt = cont;
finfo->fname = fname;
- return fill_out_finfo(finfo, info, wanted);
+ return fill_out_finfo(finfo, &info, wanted);
}
else {
#if !defined(ENOENT) || !defined(ENOTDIR)