pathnames.h.noac
上传用户:zibowangxu
上传日期:2007-01-04
资源大小:331k
文件大小:6k
源码类别:

Ftp客户端

开发平台:

Unix_Linux

  1. /****************************************************************************    
  2.   Copyright (c) 1999 WU-FTPD Development Group.  
  3.   All rights reserved.
  4.    
  5.   Portions Copyright (c) 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994  
  6.     The Regents of the University of California. 
  7.   Portions Copyright (c) 1993, 1994 Washington University in Saint Louis.  
  8.   Portions Copyright (c) 1996, 1998 Berkeley Software Design, Inc.  
  9.   Portions Copyright (c) 1989 Massachusetts Institute of Technology.  
  10.   Portions Copyright (c) 1998 Sendmail, Inc.  
  11.   Portions Copyright (c) 1983, 1995, 1996, 1997 Eric P.  Allman.  
  12.   Portions Copyright (c) 1997 by Stan Barber.  
  13.   Portions Copyright (c) 1997 by Kent Landfield.  
  14.   Portions Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997  
  15.     Free Software Foundation, Inc.    
  16.    
  17.   Use and distribution of this software and its source code are governed   
  18.   by the terms and conditions of the WU-FTPD Software License ("LICENSE").  
  19.    
  20.   If you did not receive a copy of the license, it may be obtained online  
  21.   at http://www.wu-ftpd.org/license.html.  
  22.    
  23.   $Id: pathnames.h.noac,v 1.2 1999/09/23 20:52:08 wuftpd Exp $  
  24.    
  25. ****************************************************************************/
  26. #ifdef SOLARIS_2
  27. #define UTMP_DIR        "/var/adm"
  28. #define WTMP_DIR        "/var/adm"
  29. #define LASTLOG_DIR     "/var/adm"
  30. #else
  31. #define UTMP_DIR        "/etc"
  32. #define WTMP_DIR        "/usr/adm"
  33. #define LASTLOG_DIR     "/usr/adm"
  34. #endif
  35. #define _PATH_EXECPATH  "/bin/ftp-exec"
  36. /*
  37.    ** Virtual hosting requires to support many different types of customer.
  38.    ** needs. There must be complete support for the various ftpd system files
  39.    ** and their functionality.
  40.    **
  41.    ** Supported on an individual virtual host basis:
  42.    ** ----------------------------------------------
  43.    **  _PATH_FTPACCESS
  44.    **  _PATH_FTPUSERS
  45.    **  _PATH_PRIVATE
  46.    **  _PATH_FTPHOSTS
  47.    **  _PATH_CVT
  48.    **
  49.    ** Set in a site's ftpaccess file
  50.    **  _PATH_XFERLOG
  51.    **
  52.    ** Supported on a site-wide basis:
  53.    ** --------------------------------
  54.    **  _PATH_FTPSERVERS
  55.    **  _PATH_EXECPATH
  56.    **  _PATH_PIDNAMES
  57.    **  _PATH_UTMP
  58.    **  _PATH_WTMP
  59.    **  _PATH_LASTLOG
  60.    **  _PATH_BSHELL
  61.    **  _PATH_DEVNULL
  62.    **
  63.    ** Following are possibly overridden by VIRTUAL Hosting Configuation
  64.    ** Edit accordingly.
  65.  */
  66. #ifdef USE_ETC
  67. #define _PATH_FTPUSERS   "/etc/ftpusers"
  68. #define _PATH_FTPACCESS  "/etc/ftpaccess"
  69. #define _PATH_CVT        "/etc/ftpconversions"
  70. #define _PATH_PRIVATE    "/etc/ftpgroups"
  71. #ifdef VIRTUAL
  72. #define _PATH_FTPSERVERS "/etc/ftpservers"
  73. #endif
  74. #else
  75. #ifdef USE_ETC_FTPD
  76. #define _PATH_FTPUSERS   "/etc/ftpd/ftpusers"
  77. #define _PATH_FTPACCESS  "/etc/ftpd/ftpaccess"
  78. #define _PATH_CVT        "/etc/ftpd/ftpconversions"
  79. #define _PATH_PRIVATE    "/etc/ftpd/ftpgroups"
  80. #ifdef VIRTUAL
  81. #define _PATH_FTPSERVERS "/etc/ftpd/ftpservers"
  82. #endif
  83. #else
  84. #ifdef USE_LOCAL_ETC
  85. #define _PATH_FTPUSERS   "/usr/local/etc/ftpusers"
  86. #define _PATH_FTPACCESS  "/usr/local/etc/ftpaccess"
  87. #define _PATH_CVT        "/usr/local/etc/ftpconversions"
  88. #define _PATH_PRIVATE    "/usr/local/etc/ftpgroups"
  89. #ifdef VIRTUAL
  90. #define _PATH_FTPSERVERS "/usr/local/etc/ftpservers"
  91. #endif
  92. #else
  93. #ifdef USE_OPT_FTPD
  94. #define _PATH_FTPUSERS   "/opt/ftpd/lib/ftpusers"
  95. #define _PATH_FTPACCESS  "/opt/ftpd/lib/ftpaccess"
  96. #define _PATH_CVT        "/opt/ftpd/lib/ftpconversions"
  97. #define _PATH_PRIVATE    "/opt/ftpd/lib/ftpgroups"
  98. #ifdef VIRTUAL
  99. #define _PATH_FTPSERVERS "/opt/ftpd/lib/ftpservers"
  100. #endif
  101. #else
  102. #define _PATH_FTPUSERS   "/usr/local/lib/ftpd/ftpusers"
  103. #define _PATH_FTPACCESS  "/usr/local/lib/ftpd/ftpaccess"
  104. #define _PATH_CVT        "/usr/local/lib/ftpd/ftpconversions"
  105. #define _PATH_PRIVATE    "/usr/local/lib/ftpd/ftpgroups"
  106. #ifdef VIRTUAL
  107. #define _PATH_FTPSERVERS "/usr/local/lib/ftpd/ftpservers"
  108. #endif
  109. #endif
  110. #endif
  111. #endif
  112. #endif
  113. /* _PATH_FTPD_PIDFILE is only used if DAEMON is defined */
  114. #ifdef USE_VAR
  115. #ifdef USE_PID
  116. #define _PATH_PIDNAMES  "/var/pid/ftp.pids-%s"
  117. #define _PATH_FTPD_PID  "/var/pid/ftpd.pid"
  118. #else
  119. #ifdef VAR_RUN
  120. #define _PATH_PIDNAMES  "/var/run/ftp.pids-%s"
  121. #define _PATH_FTPD_PID  "/var/run/ftpd.pid"
  122. #else
  123. #define _PATH_PIDNAMES  "/var/adm/ftp.pids-%s"
  124. #define _PATH_FTPD_PID  "/var/adm/ftpd.pid"
  125. #endif
  126. #endif
  127. #ifdef USE_LOG
  128. #define _PATH_XFERLOG   "/var/log/xferlog"
  129. #else
  130. #define _PATH_XFERLOG   "/var/adm/xferlog"
  131. #endif
  132. #else
  133. #ifdef USE_USR
  134. #define _PATH_PIDNAMES  "/usr/adm/ftp.pids-%s"
  135. #define _PATH_FTPD_PID  "/usr/adm/ftpd.pid"
  136. #define _PATH_XFERLOG   "/usr/adm/xferlog"
  137. #else
  138. #define _PATH_PIDNAMES  "/usr/local/lib/ftpd/pids/%s"
  139. #define _PATH_FTPD_PID  "/usr/local/lib/ftpd/pids/ftpd.pid"
  140. #define _PATH_XFERLOG   "/usr/local/logs/xferlog"
  141. #endif
  142. #endif
  143. #ifndef _PATH_UTMP
  144. #ifdef UTMP_FILE
  145. #define _PATH_UTMP UTMP_FILE
  146. #endif
  147. #endif
  148. #ifndef _PATH_WTMP
  149. #ifdef WTMP_FILE
  150. #define _PATH_WTMP WTMP_FILE
  151. #endif
  152. #endif
  153. #if defined(sun) && defined(SOLARIS_2)
  154. #ifndef _PATH_UTMP
  155. #define _PATH_UTMP      UTMP_DIR"/utmp"
  156. #endif
  157. #ifndef _PATH_WTMP
  158. #define _PATH_WTMP      WTMP_DIR"/wtmp"
  159. #endif
  160. #ifndef _PATH_LASTLOG
  161. #define _PATH_LASTLOG   LASTLOG_DIR"/lastlog"
  162. #endif
  163. #else
  164. #ifndef _PATH_UTMP
  165. #define _PATH_UTMP      "/etc/utmp"
  166. #endif
  167. #ifndef _PATH_WTMP
  168. #define _PATH_WTMP      "/usr/adm/wtmp"
  169. #endif
  170. #ifndef _PATH_LASTLOG
  171. #define _PATH_LASTLOG   "/usr/adm/lastlog"
  172. #endif
  173. #endif
  174. #ifndef _PATH_BSHELL
  175. #define _PATH_BSHELL    "/bin/sh"
  176. #endif
  177. #ifndef _PATH_DEVNULL
  178. #define _PATH_DEVNULL   "/dev/null"
  179. #endif
  180. #ifdef  HOST_ACCESS
  181. #ifdef USE_ETC
  182. #define _PATH_FTPHOSTS  "/etc/ftphosts"
  183. #else
  184. #ifdef USE_ETC_FTPD
  185. #define _PATH_FTPHOSTS  "/etc/ftpd/ftphosts"
  186. #else
  187. #ifdef USE_LOCAL_ETC
  188. #define _PATH_FTPHOSTS  "/usr/local/etc/ftphosts"
  189. #else
  190. #ifdef USE_OPT_FTPD
  191. #define _PATH_FTPHOSTS  "/opt/ftpd/lib/ftphosts"
  192. #else
  193. #define _PATH_FTPHOSTS  "/usr/local/lib/ftpd/ftphosts"
  194. #endif
  195. #endif
  196. #endif
  197. #endif
  198. #endif
  199. #ifndef _PATHS_DEFINED_
  200. extern char _path_ftpaccess[];
  201. extern char _path_ftpusers[];
  202. extern char _path_ftphosts[];
  203. extern char _path_private[];
  204. extern char _path_cvt[];
  205. #endif