xref: /onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/pathnames.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
2*0Sstevel@tonic-gate 
3*0Sstevel@tonic-gate /****************************************************************************
4*0Sstevel@tonic-gate   Copyright (c) 1999,2000 WU-FTPD Development Group.
5*0Sstevel@tonic-gate   All rights reserved.
6*0Sstevel@tonic-gate 
7*0Sstevel@tonic-gate   Portions Copyright (c) 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994
8*0Sstevel@tonic-gate     The Regents of the University of California.
9*0Sstevel@tonic-gate   Portions Copyright (c) 1993, 1994 Washington University in Saint Louis.
10*0Sstevel@tonic-gate   Portions Copyright (c) 1996, 1998 Berkeley Software Design, Inc.
11*0Sstevel@tonic-gate   Portions Copyright (c) 1989 Massachusetts Institute of Technology.
12*0Sstevel@tonic-gate   Portions Copyright (c) 1998 Sendmail, Inc.
13*0Sstevel@tonic-gate   Portions Copyright (c) 1983, 1995, 1996, 1997 Eric P.  Allman.
14*0Sstevel@tonic-gate   Portions Copyright (c) 1997 by Stan Barber.
15*0Sstevel@tonic-gate   Portions Copyright (c) 1997 by Kent Landfield.
16*0Sstevel@tonic-gate   Portions Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997
17*0Sstevel@tonic-gate     Free Software Foundation, Inc.
18*0Sstevel@tonic-gate 
19*0Sstevel@tonic-gate   Use and distribution of this software and its source code are governed
20*0Sstevel@tonic-gate   by the terms and conditions of the WU-FTPD Software License ("LICENSE").
21*0Sstevel@tonic-gate 
22*0Sstevel@tonic-gate   If you did not receive a copy of the license, it may be obtained online
23*0Sstevel@tonic-gate   at http://www.wu-ftpd.org/license.html.
24*0Sstevel@tonic-gate 
25*0Sstevel@tonic-gate   $Id: pathnames.h.in,v 1.5 2000/07/01 18:04:21 wuftpd Exp $
26*0Sstevel@tonic-gate 
27*0Sstevel@tonic-gate ****************************************************************************/
28*0Sstevel@tonic-gate 
29*0Sstevel@tonic-gate #ifdef HAVE_PATHS_H
30*0Sstevel@tonic-gate #include <paths.h>
31*0Sstevel@tonic-gate #endif
32*0Sstevel@tonic-gate 
33*0Sstevel@tonic-gate #ifdef SOLARIS_2
34*0Sstevel@tonic-gate #define UTMP_DIR        "/var/adm"
35*0Sstevel@tonic-gate #define WTMP_DIR        "/var/adm"
36*0Sstevel@tonic-gate #define LASTLOG_DIR     "/var/adm"
37*0Sstevel@tonic-gate #else
38*0Sstevel@tonic-gate #define UTMP_DIR        "/etc"
39*0Sstevel@tonic-gate #define WTMP_DIR        "/usr/adm"
40*0Sstevel@tonic-gate #define LASTLOG_DIR     "/usr/adm"
41*0Sstevel@tonic-gate #endif
42*0Sstevel@tonic-gate 
43*0Sstevel@tonic-gate #define _PATH_EXECPATH  "/bin/ftp-exec"
44*0Sstevel@tonic-gate 
45*0Sstevel@tonic-gate #ifdef VIRTUAL
46*0Sstevel@tonic-gate /*
47*0Sstevel@tonic-gate    ** Virtual hosting requires to support many different types of customer.
48*0Sstevel@tonic-gate    ** needs. There must be complete support for the various ftpd system files
49*0Sstevel@tonic-gate    ** and their functionality.
50*0Sstevel@tonic-gate    **
51*0Sstevel@tonic-gate    ** Supported on an individual virtual host basis:
52*0Sstevel@tonic-gate    ** ----------------------------------------------
53*0Sstevel@tonic-gate    **  _PATH_FTPACCESS
54*0Sstevel@tonic-gate    **  _PATH_FTPUSERS
55*0Sstevel@tonic-gate    **  _PATH_PRIVATE
56*0Sstevel@tonic-gate    **  _PATH_FTPHOSTS
57*0Sstevel@tonic-gate    **  _PATH_CVT
58*0Sstevel@tonic-gate    **
59*0Sstevel@tonic-gate    ** Set in a site's ftpaccess file
60*0Sstevel@tonic-gate    **  _PATH_XFERLOG
61*0Sstevel@tonic-gate    **
62*0Sstevel@tonic-gate    ** Supported on a site-wide basis:
63*0Sstevel@tonic-gate    ** --------------------------------
64*0Sstevel@tonic-gate    **  _PATH_FTPSERVERS
65*0Sstevel@tonic-gate    **  _PATH_EXECPATH
66*0Sstevel@tonic-gate    **  _PATH_PIDNAMES
67*0Sstevel@tonic-gate    **  _PATH_UTMP
68*0Sstevel@tonic-gate    **  _PATH_WTMP
69*0Sstevel@tonic-gate    **  _PATH_LASTLOG
70*0Sstevel@tonic-gate    **  _PATH_BSHELL
71*0Sstevel@tonic-gate    **  _PATH_DEVNULL
72*0Sstevel@tonic-gate    **
73*0Sstevel@tonic-gate    ** Following are possibly overridden by VIRTUAL Hosting Configuation
74*0Sstevel@tonic-gate    ** Edit accordingly.
75*0Sstevel@tonic-gate  */
76*0Sstevel@tonic-gate #endif
77*0Sstevel@tonic-gate 
78*0Sstevel@tonic-gate #undef _PATH_FTPUSERS
79*0Sstevel@tonic-gate #undef _PATH_FTPACCESS
80*0Sstevel@tonic-gate #undef _PATH_CVT
81*0Sstevel@tonic-gate #undef _PATH_PRIVATE
82*0Sstevel@tonic-gate 
83*0Sstevel@tonic-gate #define _PATH_FTPUSERS  "/etc/ftpd/ftpusers"
84*0Sstevel@tonic-gate #define _PATH_FTPACCESS "/etc/ftpd/ftpaccess"
85*0Sstevel@tonic-gate #define _PATH_CVT       "/etc/ftpd/ftpconversions"
86*0Sstevel@tonic-gate #define _PATH_PRIVATE   "/etc/ftpd/ftpgroups"
87*0Sstevel@tonic-gate 
88*0Sstevel@tonic-gate #ifdef VIRTUAL
89*0Sstevel@tonic-gate #undef _PATH_FTPSERVERS
90*0Sstevel@tonic-gate #define _PATH_FTPSERVERS "/etc/ftpd/ftpservers"
91*0Sstevel@tonic-gate #endif
92*0Sstevel@tonic-gate 
93*0Sstevel@tonic-gate #ifdef  HOST_ACCESS
94*0Sstevel@tonic-gate #undef _PATH_FTPHOSTS
95*0Sstevel@tonic-gate #define _PATH_FTPHOSTS  "/etc/ftpd/ftphosts"
96*0Sstevel@tonic-gate #endif
97*0Sstevel@tonic-gate 
98*0Sstevel@tonic-gate /* _PATH_FTPD_PIDFILE is only used if DAEMON is defined */
99*0Sstevel@tonic-gate 
100*0Sstevel@tonic-gate #define _PATH_PIDNAMES  "/var/run/ftp.pids-%s"
101*0Sstevel@tonic-gate #define _PATH_FTPD_PID  "/var/run/ftpd.pid"
102*0Sstevel@tonic-gate #define _PATH_XFERLOG   "/var/log/xferlog"
103*0Sstevel@tonic-gate 
104*0Sstevel@tonic-gate #ifndef _PATH_UTMP
105*0Sstevel@tonic-gate #ifdef UTMP_FILE
106*0Sstevel@tonic-gate #define _PATH_UTMP UTMP_FILE
107*0Sstevel@tonic-gate #endif
108*0Sstevel@tonic-gate #endif
109*0Sstevel@tonic-gate 
110*0Sstevel@tonic-gate #ifndef _PATH_WTMP
111*0Sstevel@tonic-gate #ifdef WTMP_FILE
112*0Sstevel@tonic-gate #define _PATH_WTMP WTMP_FILE
113*0Sstevel@tonic-gate #endif
114*0Sstevel@tonic-gate #endif
115*0Sstevel@tonic-gate 
116*0Sstevel@tonic-gate #if defined(sun) && defined(SOLARIS_2)
117*0Sstevel@tonic-gate #ifndef _PATH_UTMP
118*0Sstevel@tonic-gate #define _PATH_UTMP      UTMP_DIR"/utmp"
119*0Sstevel@tonic-gate #endif
120*0Sstevel@tonic-gate #ifndef _PATH_WTMP
121*0Sstevel@tonic-gate #define _PATH_WTMP      WTMP_DIR"/wtmp"
122*0Sstevel@tonic-gate #endif
123*0Sstevel@tonic-gate #ifndef _PATH_LASTLOG
124*0Sstevel@tonic-gate #define _PATH_LASTLOG   LASTLOG_DIR"/lastlog"
125*0Sstevel@tonic-gate #endif
126*0Sstevel@tonic-gate #else
127*0Sstevel@tonic-gate #ifndef _PATH_UTMP
128*0Sstevel@tonic-gate #define _PATH_UTMP      "/etc/utmp"
129*0Sstevel@tonic-gate #endif
130*0Sstevel@tonic-gate #ifndef _PATH_WTMP
131*0Sstevel@tonic-gate #define _PATH_WTMP      "/usr/adm/wtmp"
132*0Sstevel@tonic-gate #endif
133*0Sstevel@tonic-gate #ifndef _PATH_LASTLOG
134*0Sstevel@tonic-gate #define _PATH_LASTLOG   "/usr/adm/lastlog"
135*0Sstevel@tonic-gate #endif
136*0Sstevel@tonic-gate #endif
137*0Sstevel@tonic-gate 
138*0Sstevel@tonic-gate #ifndef _PATH_BSHELL
139*0Sstevel@tonic-gate #define _PATH_BSHELL    "/bin/sh"
140*0Sstevel@tonic-gate #endif
141*0Sstevel@tonic-gate 
142*0Sstevel@tonic-gate #ifndef _PATH_DEVNULL
143*0Sstevel@tonic-gate #define _PATH_DEVNULL   "/dev/null"
144*0Sstevel@tonic-gate #endif
145*0Sstevel@tonic-gate 
146*0Sstevel@tonic-gate #ifndef _PATHS_DEFINED_
147*0Sstevel@tonic-gate extern char _path_ftpaccess[];
148*0Sstevel@tonic-gate extern char _path_ftpusers[];
149*0Sstevel@tonic-gate extern char _path_ftphosts[];
150*0Sstevel@tonic-gate extern char _path_private[];
151*0Sstevel@tonic-gate extern char _path_cvt[];
152*0Sstevel@tonic-gate #endif
153