Todd C. Miller
d7c309f702
Conver sudo_debug_write() to a macro
2014-07-21 09:13:47 -06:00
Todd C. Miller
9071e95080
Move mksiglist.h and mksigname.h to lib/util where they belong.
2014-07-14 09:46:17 -06:00
Todd C. Miller
96d1967ab0
Avoid passing -no-fast-install to libtool as this results in the
...
build dir being left in the library path of the installed executable.
Instead, we remove the "lt-" prefix from the program name in
initprogname() so that the regress test output is unaffected by
libtool's binary wrapper.
2014-07-14 09:08:50 -06:00
Todd C. Miller
9f3caa5a62
Use sudo_strtoid() now that it is located in the same library.
2014-07-13 07:09:00 -06:00
Todd C. Miller
c10c9cd5e6
Skip leading space (ala strtol) so that we can pick up the sign
...
even if it is not the first character of the string.
2014-07-13 07:08:12 -06:00
Todd C. Miller
36a5767e3e
efree -> sudo_efree for consistency
2014-07-10 15:35:04 -06:00
Todd C. Miller
12c3b456d8
Add sudo_warn_strerror() that wraps strerror() with calls to
...
setlocale() in sudoers so we always get the error string in the
user's locale. Also change _warning() to take the error number as
a parameter instead of examining errno.
2014-07-08 09:52:21 -06:00
Todd C. Miller
2bad717548
Avoid a cppcheck warning when NSIG is not defined.
2014-07-03 16:55:01 -06:00
Todd C. Miller
4e1e76a4b1
Use libtool to install/uninstall the plugins and sudo_noexec.
2014-06-29 20:45:36 -06:00
Todd C. Miller
2ab61a1281
Don't build a static libsudo_util.a unless we are linking sudoers
...
statically.
2014-07-01 14:26:47 -06:00
Todd C. Miller
a8fa112a53
atobool -> sudo_strtobool
...
atoid-> sudo_strtoid
atomode -> sudo_strtomode
2014-06-27 14:53:54 -06:00
Todd C. Miller
d6948f5a4a
Fix regexp damage when renaming erecalloc() -> sudo_erecalloc()
2014-06-27 11:48:07 -06:00
Todd C. Miller
2d61d38c23
Add sudo_ prefix to alloc.c functions and rename alloc.h -> sudo_alloc.h
2014-06-27 10:48:31 -06:00
Todd C. Miller
c4c253847e
Remove extra sudo_ prefix from vfatalxnodebug and vfatalx_nodebug.
2014-06-27 10:39:49 -06:00
Todd C. Miller
8e088e65c0
Split fileops.c into parseln.c and locking.c
2014-06-27 09:46:24 -06:00
Todd C. Miller
aecef4aa1d
Rename warning/fatal -> sudo_warn/sudo_fatal to avoid namespace
...
pollution in libsudo_util.so.
2014-06-27 09:30:52 -06:00
Todd C. Miller
d36846a699
Reduce name space pollution in libsudo_util.so
2014-06-26 16:21:19 -06:00
Todd C. Miller
7bafa63c15
Don't pollute the namespace with lbuf struct and functions
2014-06-26 15:51:15 -06:00
Todd C. Miller
6bdee0488c
Rename parse_gid_list -> sudo_parse_gids to avoid namespace pollution.
2014-06-26 15:51:15 -06:00
Todd C. Miller
9ba5d82926
Rename fmt_string -> sudo_new_key_val to better describe its function.
2014-06-26 15:51:15 -06:00
Todd C. Miller
f029e3e744
Remove touch() from fileops.c and just call utimes/futimes directly.
...
Rename lock_file -> sudo_lock_file to avoid namespace pollution
2014-06-26 15:51:15 -06:00
Todd C. Miller
2166a6afe1
Remove use of setjmp/longjmp in the sudoers plugin. We no longer
...
call fatal() except in the malloc wrappers and due to libsudo_util
there is now a single copy of fatal/fatalx.
2014-06-26 15:51:15 -06:00
Todd C. Miller
088edcb6f5
Add exported libsudo_util functions to util.exp and mark in headers
...
using __dso_public.
2014-06-26 15:51:15 -06:00
Todd C. Miller
87c2fe5a31
Prefix all libc replacements with sudo_ and #define the real name
...
to the sudo_ version. That way we don't pollute the libc namespace.
2014-06-26 15:51:08 -06:00
Todd C. Miller
4d37a4a162
Top level directory reorg
...
Move src/po -> po
Combine common and compat -> lib/util
Move zlib -> lib/zlib
2014-06-26 15:51:02 -06:00