refresh patch
OBS-URL: https://build.opensuse.org/package/show/server:http/thttpd?expand=0&rev=20
This commit is contained in:
parent
2d51255ecc
commit
97844d4081
@ -14,11 +14,11 @@ Signed-off-by: Anthony G. Basile <basile@opensource.dyc.edu>
|
|||||||
src/thttpd.c | 8 ++++++--
|
src/thttpd.c | 8 ++++++--
|
||||||
1 file changed, 6 insertions(+), 2 deletions(-)
|
1 file changed, 6 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/thttpd.c b/src/thttpd.c
|
Index: thttpd-2.25b/thttpd.c
|
||||||
index 019b8c0..f33a7a7 100644
|
===================================================================
|
||||||
--- a/src/thttpd.c
|
--- thttpd-2.25b.orig/thttpd.c 2013-12-03 15:38:31.719334530 +0100
|
||||||
+++ b/src/thttpd.c
|
+++ thttpd-2.25b/thttpd.c 2013-12-03 15:38:31.754334893 +0100
|
||||||
@@ -326,6 +326,7 @@ static void
|
@@ -331,6 +331,7 @@ static void
|
||||||
re_open_logfile( void )
|
re_open_logfile( void )
|
||||||
{
|
{
|
||||||
FILE* logfp;
|
FILE* logfp;
|
||||||
@ -26,7 +26,7 @@ index 019b8c0..f33a7a7 100644
|
|||||||
|
|
||||||
if ( no_log || hs == (httpd_server*) 0 )
|
if ( no_log || hs == (httpd_server*) 0 )
|
||||||
return;
|
return;
|
||||||
@@ -335,7 +336,8 @@ re_open_logfile( void )
|
@@ -340,7 +341,8 @@ re_open_logfile( void )
|
||||||
{
|
{
|
||||||
syslog( LOG_NOTICE, "re-opening logfile" );
|
syslog( LOG_NOTICE, "re-opening logfile" );
|
||||||
logfp = fopen( logfile, "a" );
|
logfp = fopen( logfile, "a" );
|
||||||
@ -36,7 +36,7 @@ index 019b8c0..f33a7a7 100644
|
|||||||
{
|
{
|
||||||
syslog( LOG_CRIT, "re-opening %.80s - %m", logfile );
|
syslog( LOG_CRIT, "re-opening %.80s - %m", logfile );
|
||||||
return;
|
return;
|
||||||
@@ -355,6 +357,7 @@ main( int argc, char** argv )
|
@@ -360,6 +362,7 @@ main( int argc, char** argv )
|
||||||
gid_t gid = 32767;
|
gid_t gid = 32767;
|
||||||
char cwd[MAXPATHLEN+1];
|
char cwd[MAXPATHLEN+1];
|
||||||
FILE* logfp;
|
FILE* logfp;
|
||||||
@ -44,7 +44,7 @@ index 019b8c0..f33a7a7 100644
|
|||||||
int num_ready;
|
int num_ready;
|
||||||
int cnum;
|
int cnum;
|
||||||
connecttab* c;
|
connecttab* c;
|
||||||
@@ -424,7 +427,8 @@ main( int argc, char** argv )
|
@@ -429,7 +432,8 @@ main( int argc, char** argv )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
logfp = fopen( logfile, "a" );
|
logfp = fopen( logfile, "a" );
|
||||||
@ -54,7 +54,3 @@ index 019b8c0..f33a7a7 100644
|
|||||||
{
|
{
|
||||||
syslog( LOG_CRIT, "%.80s - %m", logfile );
|
syslog( LOG_CRIT, "%.80s - %m", logfile );
|
||||||
perror( logfile );
|
perror( logfile );
|
||||||
--
|
|
||||||
1.7.9.5
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user