httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <...@orton.demon.co.uk>
Subject [PATCH] Set device in ap_stat
Date Mon, 03 Jul 2000 15:33:36 GMT
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;



Mime
View raw message