Commit Graph

86 Commits

Author SHA1 Message Date
Todd C. Miller
15bc74bd67 Include libint.h where needed. 2011-05-16 16:37:11 -04:00
Todd C. Miller
c865a462cc Prepare sudo front end messages for translation. 2011-05-06 17:47:51 -04:00
Todd C. Miller
5c3fbfd733 Don't let the fnmatch/glob macros expand the function prototype. 2011-05-04 11:21:03 -04:00
Todd C. Miller
a1f6db3a0c Resolve namespace collisions on HP-UX ia64 and possibly others by
adding a rpl_ prefix to our fnmatch and glob replacements and
#defining rpl_foo to foo in the header files.
2011-05-03 13:45:56 -04:00
Todd C. Miller
60e9e4dd83 Stop testing unspecified behavior in fnmatch
Make glob test more portable
2011-04-06 15:13:23 -04:00
Todd C. Miller
8720363f33 No need to add current dir to include path and having it breaks the
test programs that expect to get the system glob.h and fnmatch.h
2011-04-06 15:12:34 -04:00
Todd C. Miller
f949dbcc58 Fix fnmatch and glob tests to not use hard-coded flag values in the
input file.  Link test programs with libreplace so we get our
replacement verions as needed.
2011-04-06 10:57:39 -04:00
Todd C. Miller
44c763c728 If there is an existing sudoers file, only install if it passes a
syntax check.
2011-03-29 15:20:32 -04:00
Todd C. Miller
53da5e8cdf Update copyright years. 2011-03-11 15:34:35 -05:00
Todd C. Miller
da24fe8c3b Reorder functions to quiet a compiler warning. 2011-03-09 11:22:34 -05:00
Todd C. Miller
ca86faac93 Use fgets() not fgetln() for portability. 2011-03-02 12:39:11 -05:00
Todd C. Miller
7b622a8ca1 avoid using "howmany" for a parameter name since it is a select-related macro 2011-02-19 18:53:28 -05:00
Todd C. Miller
2603e2ce8b Fix typo 2011-02-07 10:39:58 -05:00
Todd C. Miller
21d8f01fac return foo not return(foo) 2011-02-07 06:47:29 -05:00
Todd C. Miller
c8bb848065 Use "missing.h" not <missing.h> in generated code. 2011-02-05 15:03:00 -05:00
Todd C. Miller
ae2f7638f5 standardize on "return foo;" rather than "return(foo);" or "return (foo);" 2011-01-24 15:15:18 -05:00
Todd C. Miller
4cc54e4b81 Don't test features not supported by the bundled glob() 2011-01-20 16:58:35 -05:00
Todd C. Miller
f7f8b6867e Update copyright year to 2011 2011-01-20 16:46:56 -05:00
Todd C. Miller
ac857d6e9d Add my regress tests for fnmatch() and glob() from OpenBSD. 2011-01-07 14:48:19 -05:00
Todd C. Miller
1defd7b456 Add regression tests for iolog_path() 2011-01-06 11:05:28 -05:00
Todd C. Miller
f8de3f6327 Add support for "make Makefile" to regenerate Makefile from Makefile.in 2011-01-06 10:44:28 -05:00
Todd C. Miller
b8499baaae Fix building of mkstemps/mkdtemp replacements. 2010-12-27 14:07:49 -05:00
Todd C. Miller
5cf56a77ec Provide mkdtemp() for systems without it. 2010-12-27 13:49:49 -05:00
Todd C. Miller
30797ab8ae Remove useless cast 2010-12-20 16:16:08 -05:00
Todd C. Miller
47323843a5 Give up on using VPATH to find sources as it is implemented inconsistenly
in different versions of make.
2010-11-09 10:27:02 -05:00
Todd C. Miller
e4abd86c6b Avoid potential namespace issues with dlopen() emulation. 2010-10-12 10:32:47 -04:00
Todd C. Miller
070446bc33 Fix remaining syntax errors. 2010-10-11 21:10:34 -04:00
Todd C. Miller
de68538487 Actually call shl_load() 2010-10-11 15:19:00 -04:00
Todd C. Miller
86d3e4bf09 Quiet a compiler warning and fix sudo_preload_table external definition. 2010-10-11 09:11:46 -04:00
Todd C. Miller
dc327471b7 Fix multiple inclusion guard in dlfcn.h and fix dlerror() prototype. 2010-10-11 09:11:20 -04:00
Todd C. Miller
f538ed4e35 Add dlopen() emulation for systems without it.
For HP-UX 10, emulate using shl_load().
For others, link sudoers plugin statically and use a lookup
table to emulate dlsym().
2010-09-26 17:41:35 -04:00
Todd C. Miller
b0b57fbef9 When including compat headers, use the compat dir as part of the path
so we are sure to get the correct header.
2010-09-24 17:01:17 -04:00
Todd C. Miller
502555d2de Quiet bogus compiler warnings. 2010-09-13 12:18:51 -04:00
Todd C. Miller
e74b6e6b1e missing.h should come before most local includes 2010-09-07 19:14:22 -04:00
Todd C. Miller
10c3bb62c4 Make local includes consistent; use double quotes for local includes
except for generated ones where we use angle brackets.
Also g/c unused compat.h.
2010-09-07 16:45:19 -04:00
Todd C. Miller
399381de99 Add #include of sys/types.h for .c files that include missing.h to
be sure that size_t and ssize_t are defined.
2010-08-30 09:14:41 -04:00
Todd C. Miller
f454727bb8 Merge compat.h and missing.h into missing.h 2010-08-16 14:05:44 -04:00
Todd C. Miller
6bcd9efc0c Use gettimeofday() directly instead of via the gettime() wrapper. 2010-08-10 13:50:40 -04:00
Todd C. Miller
8dd8aa000e Remove some obsolete configure tests, ancient Unix systems are no
longer supported.
2010-08-10 13:44:05 -04:00
Todd C. Miller
24a755bfe7 Use AC_CHECK_MEMBER in SUDO_SOCK_SA_LEN
Use AC_TYPE_LONG_LONG_INT and AC_CHECK_SIZEOF([long int]) instead
    of rolling our own.
2010-07-31 21:19:46 -04:00
Todd C. Miller
5183d6e594 Include time.h for struct timeval 2010-07-21 16:01:16 -04:00
Todd C. Miller
a33996e740 install-man -> install-doc 2010-07-13 08:36:19 -04:00
Todd C. Miller
2b7410074f Add prototype for gettime() 2010-07-12 18:00:05 -04:00
Todd C. Miller
ea4298bb54 Use mkstemps() instead of mkstemp() in sudoedit. This allows sudoedit
to preserve the file extension (if any) which may be used by the editor
(like emacs) to choose the editing mode.
2010-07-09 10:08:05 -04:00
Todd C. Miller
3f33f75b7a Add uninstall target 2010-07-07 11:42:36 -04:00
Todd C. Miller
98ce6c94cb Remove unused AR, SED and RANLIB variables 2010-07-07 11:12:58 -04:00
Todd C. Miller
6229c0e206 Now that sudoers is a dynamically loaded module we cannot override
the libc environment functions because the symbols may already have
been resolved via libc.  Remove getenv/putenv/setenv/unsetenv
replacements from sudoers and add replacements for setenv/unsetenv
for systems that lack them.
2010-07-06 16:44:33 -04:00
Todd C. Miller
30fe4a067c Set usrinfo for AIX
Set adminstrative domain for the process when looking up user's
    password or group info and when preparing for execve().
Include strings.h even if string.h exists since they may define
    different things.  Fixes warnings on AIX and others.
2010-06-29 13:08:05 -04:00
Todd C. Miller
b72a530fd0 Update copyright year 2010-06-14 12:19:49 -04:00
Todd C. Miller
047fc3876d Remove sigaction emulation
Use SA_INTERRUPT in sa_flags
2010-06-10 15:18:23 -04:00