httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Terbush <ra...@zyzzyva.com>
Subject Re: another patch
Date Sun, 01 Dec 1996 23:03:54 GMT

How about this patch to fix a problem where negative group/user ids
are not supported?


===================================================================
RCS file: /export/home/cvs/apache/src/conf.h,v
retrieving revision 1.48
diff -c -r1.48 conf.h
*** conf.h	1996/12/01 20:28:15	1.48
--- conf.h	1996/12/01 21:04:30
***************
*** 293,298 ****
--- 293,300 ----
  #undef NO_KILLPG
  #undef NO_SETSID
  #define JMP_BUF sigjmp_buf
+ #define DEFAULT_USER "nobody"
+ #define DEFAULT_GROUP "nobody"
  typedef quad_t rlim_t;
  
  #elif defined(UTS21)
***************
*** 318,323 ****
--- 320,327 ----
  #undef NO_SETSID
  #define JMP_BUF sigjmp_buf
  #define HAVE_MMAP
+ #define DEFAULT_USER "nobody"
+ #define DEFAULT_GROUP "nobody"
  typedef quad_t rlim_t;
  
  #elif defined(QNX)
Index: httpd.h
===================================================================
RCS file: /export/home/cvs/apache/src/httpd.h,v
retrieving revision 1.65
diff -c -r1.65 httpd.h
*** httpd.h	1996/12/01 20:28:38	1.65
--- httpd.h	1996/12/01 21:03:05
***************
*** 102,109 ****
--- 102,113 ----
  /* --------- Default user name and group name running standalone ---------- */
  /* --- These may be specified as numbers by placing a # before a number --- */
  
+ #ifndef DEFAULT_USER
  #define DEFAULT_USER "#-1"
+ #endif
+ #ifndef DEFAULT_GROUP
  #define DEFAULT_GROUP "#-1"
+ #endif
  
  /* The name of the log files */
  #ifdef __EMX__





Mime
View raw message