From cfbf5b24b7d3800a8e4f683011eb132321b8f0c2 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 18 Jun 2004 00:36:58 +0000 Subject: [PATCH] Fixed bug #28818 (Apache 2 sapis do not export st_dev). --- sapi/apache2filter/sapi_apache2.c | 1 + sapi/apache2handler/sapi_apache2.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index 987be43e9c..d9eee97493 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -171,6 +171,7 @@ php_apache_sapi_get_stat(TSRMLS_D) ctx->finfo.st_uid = ctx->r->finfo.user; ctx->finfo.st_gid = ctx->r->finfo.group; + ctx->finfo.st_dev = ctx->r->finfo.device; ctx->finfo.st_ino = ctx->r->finfo.inode; #if defined(NETWARE) && defined(CLIB_STAT_PATCH) ctx->finfo.st_atime.tv_sec = ctx->r->finfo.atime/1000000; diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index ebcb625613..0bc5f15bc8 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -181,6 +181,7 @@ php_apache_sapi_get_stat(TSRMLS_D) ctx->finfo.st_uid = ctx->r->finfo.user; ctx->finfo.st_gid = ctx->r->finfo.group; + ctx->finfo.st_dev = ctx->r->finfo.device; ctx->finfo.st_ino = ctx->r->finfo.inode; #if defined(NETWARE) && defined(CLIB_STAT_PATCH) ctx->finfo.st_atime.tv_sec = ctx->r->finfo.atime/1000000; -- 2.50.1