summaryrefslogtreecommitdiff
path: root/pathnames.h.in
blob: becf3d1c41322fa569895e2953f5d6d818cf1e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
 *  CU sudo version 1.5.2
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 1, or (at your option)
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *  Please send bugs, changes, problems to sudo-bugs@courtesan.com
 *
 *  $Id$
 */

/*
 *  Pathnames to programs and files used by sudo.
 */

#ifdef HAVE_PATHS_H
#include <paths.h>
#endif /* HAVE_PATHS_H */

#ifndef _PATH_DEV
#define _PATH_DEV		"/dev/"
#endif /* _PATH_DEV */

/*
 * NOTE: _PATH_SUDO_SUDOERS is usually overriden by the Makefile
 */
#ifndef _PATH_SUDO_SUDOERS
#define _PATH_SUDO_SUDOERS	"/etc/sudoers"
#endif /* _PATH_SUDO_SUDOERS */

/*
 * NOTE:  _PATH_SUDO_STMP is usually overriden by the Makefile.
 *        _PATH_SUDO_STMP *MUST* be on the same partition
 *        as _PATH_SUDO_SUDOERS!
 */
#ifndef _PATH_SUDO_STMP
#define _PATH_SUDO_STMP		"/etc/stmp"
#endif /* _PATH_SUDO_STMP */

#ifndef _PATH_SUDO_TIMEDIR
#define _PATH_SUDO_TIMEDIR	_CONFIG_PATH_TIMEDIR
#endif /* _PATH_SUDO_TIMEDIR */

#ifndef _PATH_TTY
#define _PATH_TTY		"/dev/tty"
#endif /* _PATH_TTY */

/*
 * The following paths are gleaned via configure but you can override
 * configure's values here if you want.
 */

/*
 * Where to put the sudo log file when logging to a file this
 * is /var/log/sudo.log if /var/log exists, else /var/adm/sudo.log
 */
#ifndef _PATH_SUDO_LOGFILE
#define _PATH_SUDO_LOGFILE	_CONFIG_PATH_LOGFILE
#endif /* _PATH_SUDO_LOGFILE */

#ifndef _PATH_SENDMAIL
#define _PATH_SENDMAIL		_CONFIG_PATH_SENDMAIL
#endif /* _PATH_SENDMAIL */

#ifndef _PATH_VI
#define _PATH_VI		_CONFIG_PATH_VI
#endif /* _PATH_VI */

#ifndef _PATH_PWD
#define _PATH_PWD		_CONFIG_PATH_PWD
#endif /* _PATH_PWD */

#ifndef _PATH_MV
#define _PATH_MV		_CONFIG_PATH_MV
#endif /* _PATH_MV */

#ifndef _PATH_BSHELL
#define _PATH_BSHELL		_CONFIG_PATH_BSHELL
#endif /* _PATH_BSHELL */