Commit Graph

509 Commits

Author SHA1 Message Date
Todd C. Miller
ea8c5d5d2d Add seteuid() flavor of set_perms() for systems without setreuid()
or setresuid() that have a working seteuid().  Tested on Darwin.
2006-07-31 17:50:06 +00:00
Todd C. Miller
8efcb40512 Add mkstemp() for those poor souls without it. 2005-11-17 01:36:48 +00:00
Todd C. Miller
c2f6b93ada No longer need memmove() 2005-02-20 17:28:25 +00:00
Todd C. Miller
0b315c10d0 Set locale to "C" if locales are supported, just to be safe. 2005-02-10 03:24:00 +00:00
Todd C. Miller
9a890467a7 Use execve(2) and wrap the command in sh if we get ENOEXEC. 2005-02-07 04:16:28 +00:00
Todd C. Miller
f780611c33 use bcopy on systems w/o memmove 2005-02-06 03:56:38 +00:00
Todd C. Miller
e166c1b11d Move _FOO_SOURCE to CPPFLAGS so it takes effect as early as possible.
Silences a warning about isblank() on linux.
2005-02-05 14:57:44 +00:00
Todd C. Miller
2dc559bf3e s/HAVE_AUTHENTICATE/HAVE_AIXAUTH/g 2005-01-21 15:29:55 +00:00
Todd C. Miller
9884923a9c Add TIME_WITH_SYS_TIME_H 2004-12-03 18:48:07 +00:00
Todd C. Miller
33db4b2edb Add check for 2-argument form of timespecsub (FreeBSD and BSD/OS) and
fix a typo in the gettimeofday check.
2004-11-25 17:09:31 +00:00
Todd C. Miller
f7f282ba13 Add configure check for getgroups() 2004-11-16 23:59:56 +00:00
Todd C. Miller
51375f969f Add local error/warning functions like err/warn but that call an additional
cleanup routine in the error case.  This means we no longer need to compile
a special version of alloc.o for visudo.
2004-11-15 15:53:53 +00:00
Todd C. Miller
ba12600db1 No long use lsearch() 2004-10-26 22:15:05 +00:00
Todd C. Miller
48cdd1dec3 Kill use of POSIX saved uids; they aren't worth bothering with. 2004-10-13 16:46:19 +00:00
Todd C. Miller
082b0f8b3b Define HAVE_EXTENDED_GLOB for extended glob (GLOB_TILDE and GLOB_BRACE) 2004-10-07 18:27:49 +00:00
Todd C. Miller
e05c8441e6 Check for a glob() that supports GLOB_BRACE and GLOB_TILDE 2004-10-07 16:59:54 +00:00
Todd C. Miller
0035b30f94 Add missing HAVE_LINUX_SYSTRACE_H 2004-10-01 14:47:14 +00:00
Todd C. Miller
35203ffe56 Add check for setproctitle 2004-09-24 18:10:27 +00:00
Todd C. Miller
2af113f24e Add --with-systrace 2004-09-24 00:11:31 +00:00
Todd C. Miller
70d8f78328 Removed unneed check for fchown
Add check for gettimeofday
Move autoheader template stuff into separate AH_TEMPLATE lines
2004-09-08 15:49:26 +00:00
Todd C. Miller
54789c8fbd Add a check for struct timespec and provide it for those without. 2004-09-07 20:36:31 +00:00
Todd C. Miller
c0bfcc95c3 Add checks for st_mtim and st_mtimespec and add macros for pulling
the mtime sec and nsec out of struct stat.  These are used in sudo_edit()
to better tell whether or not the file has changed.
2004-09-07 19:57:00 +00:00
Todd C. Miller
1c20ff1a6d Use utimes() and futimes() instead of utime() in touch(), emulating as needed.
Not all systems are able to support setting the times of an fd so touch()
takes both an fd and a file name as arguments.
2004-09-07 17:14:52 +00:00
Todd C. Miller
610da19a89 Better check for dirfd macro--we now set HAVE_DIRFD for the macro version too.
Added check for dd_fd in `DIR' if no dirfd is found; this is now used to
confitionally define the dirfd macro in compat.h.
2004-06-01 20:53:31 +00:00
Todd C. Miller
54cb0921de Add a check for a dirfd() function (like Linux) and add a dirfd
macro in compat.h if there is no dirfd() function or macro.
2004-06-01 19:13:37 +00:00
Todd C. Miller
f64a92347d o --with-ldap now takes an optional dir as a parameter
o added check for ldap_initialize() and start_tls_s()
2004-05-29 22:29:42 +00:00
Todd C. Miller
224f05ad1a Add back check for setreuid() since NSK doesn't have it. 2004-05-27 22:21:47 +00:00
Aaron Spangler
42cfd56127 Added start_tls support 2004-02-28 23:54:20 +00:00
Aaron Spangler
bd9be2cf05 Merged in LDAP Support 2004-02-13 02:08:27 +00:00
Todd C. Miller
3a4d283109 Add --with-pc-insults configure option 2004-02-04 04:38:56 +00:00
Todd C. Miller
2d21140a3d Add SET/CLR/ISSET 2004-01-22 00:02:36 +00:00
Todd C. Miller
f4a4d4c666 Add check for fchown(2) 2004-01-21 21:57:59 +00:00
Todd C. Miller
d55c3f63c7 Use closefrom() instead of doing the equivalent inline. 2004-01-12 19:03:54 +00:00
Todd C. Miller
149862cd9d Move PAM_CONST macro definition from config.h to pam.c where it belongs.
We can't have this in config.h since that gets included too early.
2004-01-09 19:39:00 +00:00
Todd C. Miller
aa4eb97ed5 Some PAM implementations put their headers in /usr/include/pam instead
of /usr/include/security.
2004-01-09 19:35:54 +00:00
Todd C. Miller
b106eabb4b Only OpenPAM and Linux PAM use const qualifiers. 2004-01-09 06:18:10 +00:00
Todd C. Miller
caf389c2fa Rename EXEC macro -> EXECV 2004-01-05 01:39:57 +00:00
Todd C. Miller
e52feabd48 s/HAVE_STOW/USE_STOW/ 2003-06-09 23:00:20 +00:00
Todd C. Miller
e6ec7f3374 builtin -> built-in; Jason McIntyre 2003-04-13 19:48:15 +00:00
Todd C. Miller
fab224f42f Check for heimdal even if we found krb5-config and define HAVE_HEIMDAL. 2003-04-04 17:45:24 +00:00
Todd C. Miller
d64a83b41e Add checks for getprognam(), __progname and err.h 2003-04-02 18:15:25 +00:00
Todd C. Miller
7b124c5dea Add support for --with-stow based on patches from Robert Uhl 2003-03-15 18:01:39 +00:00
Todd C. Miller
285791c42f Add stlc{at,py} for those w/o it. 2003-03-12 22:07:26 +00:00
Todd C. Miller
7a7a5fe2e0 not not; Anil Madhavapeddy 2003-03-01 18:21:20 +00:00
Todd C. Miller
dfd0d2829d Add missing "$HOME" 2003-01-20 20:58:48 +00:00
Todd C. Miller
2de61320b3 regen from configure.in 2002-11-22 19:08:10 +00:00
Todd C. Miller
35014b44bc Older BSDi releases lack freeifaddrs() so add a test for that and if
it is not present just use free().
2002-01-18 19:17:07 +00:00
Todd C. Miller
0aac4f03b7 Add --disable-root-mailer option to run the mailer as the user and not root. 2002-01-16 21:26:13 +00:00
Todd C. Miller
f039427253 Add a configure option to turn off use of POSIX saved IDs 2002-01-15 22:47:29 +00:00
Todd C. Miller
ce95eb80b6 now generated via autoheader 2002-01-02 22:40:14 +00:00