You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Joe Orton <jo...@orton.demon.co.uk> on 2000/07/03 17:33:36 UTC
[PATCH] Set device in ap_stat
Sets finfo->device in ap_stat and ap_lstat too...
joe
Index: file_io/unix/filestat.c
===================================================================
RCS file: /home/joe/lib/cvsroot/apache2/src/lib/apr/file_io/unix/filestat.c,v
retrieving revision 1.27
diff -u -p -r1.27 filestat.c
--- filestat.c 2000/07/03 12:06:29 1.27
+++ filestat.c 2000/07/03 15:25:13
@@ -119,6 +119,7 @@ ap_status_t ap_stat(ap_finfo_t *finfo, c
finfo->protection = ap_unix_mode2perms(info.st_mode);
finfo->filetype = filetype_from_mode(info.st_mode);
finfo->user = info.st_uid;
+ finfo->device = info.st_dev;
finfo->group = info.st_gid;
finfo->size = info.st_size;
finfo->inode = info.st_ino;
@@ -139,6 +140,7 @@ ap_status_t ap_lstat(ap_finfo_t *finfo,
if (lstat(fname, &info) == 0) {
finfo->protection = ap_unix_mode2perms(info.st_mode);
finfo->filetype = filetype_from_mode(info.st_mode);
+ finfo->device = info.st_dev;
finfo->user = info.st_uid;
finfo->group = info.st_gid;
finfo->size = info.st_size;