Todd C. Miller
a3a1574cdf
Explicitly mark main() as public in executables to avoid an HP-UX
...
ld warning.
2012-10-02 15:08:02 -04:00
Todd C. Miller
4017e63b9c
Add missing signame dependency
2012-08-29 16:08:02 -04:00
Todd C. Miller
ab7dda035a
Replace strsigname() with sig2str(), emulating it as needed.
2012-08-29 14:25:09 -04:00
Todd C. Miller
f44afdc423
Detect sys_sigabbrev[] and use it in place of sys_signame[] if
...
present. For some reason glibc does not declare sys_sigabbrev so
we must add an extern definition of our own.
2012-08-28 10:11:38 -04:00
Todd C. Miller
af4f02d3e2
Handle NULL entries in sys_siglist and sys_signame.
2012-08-28 09:40:56 -04:00
Todd C. Miller
24991069f6
Convert my_sys_sig{list,name} -> sudo_sys_sig{list,name}
2012-08-28 09:28:25 -04:00
Todd C. Miller
537dc94b9e
Use strsigname() to print signal names in the debug output.
...
If the system has no strsigname(), use our own.
2012-08-26 20:12:51 -04:00
Todd C. Miller
2cdd315a08
Don't echo the awk command when building siglist.in
2012-08-17 15:58:45 -04:00
Todd C. Miller
7d255e42cb
Fix some warnings from clang checker-267
2012-08-07 11:01:28 -04:00
Todd C. Miller
f8f0021710
Add configure check for building PIE executables instead of doing
...
it in mkpkg.
2012-07-02 10:12:41 -04:00
Todd C. Miller
9497df293a
Don't run regress tests or sudoers sanity check (using the newly-built
...
visudo) when cross compiling. Bug #560
2012-06-20 13:38:17 -04:00
Todd C. Miller
aa7ac09faa
Implement RTLD_NEXT and fix RTLD_DEFAULT for HP-UX.
2012-05-09 09:46:38 -04:00
Todd C. Miller
6467b7b813
Emulate RTLD_DEFAULT and RTLD_SELF w/ shl_findsym() using NULL
...
and PROG_HANDLE.
2012-05-08 16:36:39 -04:00
Todd C. Miller
0d108287b9
Do not use GLOB_BRACE or GLOB_TILDE flags to glob()--we want the
...
glob() and fnmatch() results to be consistent.
2012-04-08 18:00:31 -04:00
Todd C. Miller
e05576607f
cast ctype(3) function/macro arguments from char to unsigned char
...
to avoid potential negative subscripting.
2012-03-28 13:07:54 -04:00
Todd C. Miller
f587fa1535
Quiet a gcc "used uninitialized in this function" false positive.
2012-03-15 08:56:12 -04:00
Todd C. Miller
37770ecf1e
Initial cut at a hooks implementation. The plugin can register
...
hooks for getenv, putenv, setenv and unsetenv. This makes it
possible for the plugin to trap changes to the environment made by
authentication methods such as PAM or BSD auth so that such changes
are reflected in the environment passed back to sudo for execve().
2012-03-07 16:35:42 -05:00
Todd C. Miller
28db1fbbed
We need sysconfdir in compat/Makfile to get the proper sudo.conf
...
path. Add standard prefix and foodir expansion in all Makefiles
to avoid this problem in the future.
2012-02-27 13:28:15 -05:00
Todd C. Miller
8c1d8a7b15
Make a copy of the struct passwd in exec_setup() to make sure nothing
...
in the policy init modifies it.
2012-02-06 10:56:39 -05:00
Todd C. Miller
da6fe1230f
Use AC_HEADER_STDBOOL instead of checking for stdbool.h ourselves.
2012-01-30 09:28:11 -05:00
Todd C. Miller
40badb50e6
Only run compat regress tests on compat objects we actually build.
...
Fixes "make check" in the compat dir for systems that don't implement
character classes in fnmatch() or glob(). Bug #531
2012-01-16 10:40:11 -05:00
Todd C. Miller
e7ae9dbba2
Include errno.h and missing.h
2012-01-06 19:28:08 -05:00
Todd C. Miller
38a4990e4a
Add getaddrinfo() for those without it, written by Russ Allbery
2011-12-02 17:28:50 -05:00
Todd C. Miller
feaad3aff4
SunPro C Compiler also has a _Bool builtin.
...
Also add stdbool.h to the MANIFEST
2011-12-02 15:34:01 -05:00
Todd C. Miller
01147eda3a
Replace @DEV@ prefix with DEVEL variable so we can do "make DEVEL=1"
2011-12-02 13:43:02 -05:00
Todd C. Miller
86c86183ab
Add stdbool.h for systems without it.
2011-12-01 13:49:46 -05:00
Todd C. Miller
51e45647ae
Use HAVE_STRUCT_TIMESPEC and HAVE_STRUCT_IN6_ADDR instead of
...
HAVE_TIMESPEC and HAVE_IN6_ADDR respectively.
2011-12-01 11:07:17 -05:00
Todd C. Miller
e9e4a84528
Replace UCB fnmatch.c with a non-recursive version written by
...
William A. Rowe Jr.
2011-11-29 14:57:08 -05:00
Todd C. Miller
c21595044d
Add missing dependency for getspwuid.lo and regen other depends.
2011-09-27 13:15:48 -04:00
Todd C. Miller
47af0fc2b8
Add configure test for missing errno declaration and only
...
declare it ourselves if it is missing.
2011-08-30 10:05:30 -04:00
Todd C. Miller
b124635b04
Instead of keeping separate groups and gids arrays, create struct
...
group_info and use it to store both, along with a count for each.
Cache group info on a per-user basis using getgrouplist() to get
the groups. We no longer need special to special case the user or
list user for user_in_group() and thus no longer need to reset the
groups list when listing another user.
2011-07-20 11:58:45 -04:00
Todd C. Miller
44ab717acd
Remove dependency for getgrouplist.lo as we don't ship that source file.
2011-06-08 13:17:51 -04:00
Todd C. Miller
e66169b3ed
Move nls targets to the top level Makefile so the paths in
...
the pot file are saner
2011-06-04 18:27:13 -04:00
Todd C. Miller
7199afec89
Clean up regress files
...
Generate proper dependencies for regress objs in compat
2011-05-31 09:58:41 -04:00
Todd C. Miller
e9f44f788a
refer to siglist.c, not ./siglist.c since not all makes will
...
treat foo and ./foo the same.
2011-05-26 15:18:11 -04:00
Todd C. Miller
f7cb73abdb
Add dependency for siglist.lo in compat. This is a generated file so
...
"make depend" needs to depend on it.
2011-05-26 12:12:43 -04:00
Todd C. Miller
336ab7077a
More dependency fixes.
2011-05-26 11:46:11 -04:00
Todd C. Miller
79098fd962
Fix a few dependencies.
2011-05-26 11:41:13 -04:00
Todd C. Miller
78e235945f
Auto-generate Makefile dependencies with a perl script.
2011-05-25 09:02:25 -04:00
Todd C. Miller
bf7e7b5752
Add gettext.h convenience header. This is similar to but distinct from
...
the one included with the gettext package.
2011-05-20 11:48:17 -04:00
Todd C. Miller
3164f58143
Add scaffolding to update .po files and install .mo files.
2011-05-19 15:25:29 -04:00
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