Todd C. Miller
|
7583e8d760
|
Bug #702 is the AIX timespec issue.
|
2015-07-02 14:06:16 -06:00 |
|
Todd C. Miller
|
d77941c2be
|
We require POSIX so no need to conditionally include dirent.h.
Add a check for d_namlen and use the result in the NAMLEN macro.
|
2015-07-02 09:24:48 -06:00 |
|
Todd C. Miller
|
0b241088b3
|
There's no need to conditionalize the #include <unistd.h>, we require
a POSIX system.
|
2015-07-02 09:08:28 -06:00 |
|
Todd C. Miller
|
540b09b32c
|
Remove some compatibilty defines that should no longer be needed.
|
2015-07-02 09:07:15 -06:00 |
|
Todd C. Miller
|
a89dd2f469
|
Final changes in 1.8.14
|
2015-06-30 14:29:39 -06:00 |
|
Todd C. Miller
|
8f9aa5af25
|
Need to include stddef.h to get rsize_t on Mac OS X for sudo_memset_s()
prototype.
|
2015-06-30 14:11:53 -06:00 |
|
Todd C. Miller
|
5e695d4cd9
|
Add missing exit value.
|
2015-06-30 12:19:24 -06:00 |
|
Todd C. Miller
|
662f9ec562
|
Add missing fcntl.h include.
|
2015-06-30 12:19:17 -06:00 |
|
Todd C. Miller
|
433c3dca58
|
Do check for inet_pton before inet_ntop since we may need to record
dependent libraries for inet_pton when linking our getaddrinfo
replacement.
|
2015-06-30 10:57:42 -06:00 |
|
Todd C. Miller
|
105f199f6b
|
Fix build on compilers w/o __func__ or __FUNCTION__
|
2015-06-30 10:41:14 -06:00 |
|
Todd C. Miller
|
44f7ed3b11
|
Remove sudo_evasprintf_v1, missed during alloc.c removal.
|
2015-06-30 10:37:06 -06:00 |
|
Todd C. Miller
|
b756b6a112
|
Add missing fcntl.h include.
|
2015-06-30 10:32:42 -06:00 |
|
Todd C. Miller
|
d87a0a4aab
|
Add check for inline support.
|
2015-06-30 10:16:56 -06:00 |
|
Todd C. Miller
|
032729f1b3
|
Add reallocarray.c license.
|
2015-06-29 08:16:43 -06:00 |
|
Todd C. Miller
|
2b4e44f338
|
Fix entry for Joel Pelaez Jorge.
|
2015-06-27 14:01:09 -06:00 |
|
Todd C. Miller
|
54f9de6cce
|
Add an error flag to the lbuf struct to simplify error checking.
Callers of the lbuf functions now check the error flag to tell if
a memory allocation error ocurred.
|
2015-06-26 15:58:04 -06:00 |
|
Todd C. Miller
|
2751413464
|
display_privs() and display_cmnd() may need to return -1 on error.
|
2015-06-26 10:33:28 -06:00 |
|
Todd C. Miller
|
d3bc17a611
|
Return -1, not 0 from sudoers when there is an error (as opposed to
a policy denial).
|
2015-06-25 11:12:36 -06:00 |
|
Todd C. Miller
|
81f94499bf
|
Check restore_perms() return value in all cases, pushing the
return value back up the call stack.
|
2015-06-25 11:12:36 -06:00 |
|
Todd C. Miller
|
c5ed416a70
|
Add Joel Pelaez Jorge
|
2015-06-25 09:16:07 -06:00 |
|
Todd C. Miller
|
ea5ce39c92
|
When checking whether the PAM prompt matches "Password:", also check
for the untranslated version. The PAM module might not be using the
localized string even though it exists. From Joel Pelaez Jorge.
Fixes Bug #701
|
2015-06-25 09:12:15 -06:00 |
|
Todd C. Miller
|
d84757951f
|
Silence clang analyzer warning on glibc systems where the first
argument to qsort() is marked as non-NULL.
Also change some counters from into to unsigned int and two flags
from int to bool.
|
2015-06-24 10:32:08 -06:00 |
|
Todd C. Miller
|
aedaac8cca
|
Silence clang analyzer warning on glibc systems where the first
argument to qsort() is marked as non-NULL.
|
2015-06-23 16:37:01 -06:00 |
|
Todd C. Miller
|
a76b93e23a
|
Use our own bitmap macros instead of borrowing the ones from select.
|
2015-06-23 16:37:00 -06:00 |
|
Todd C. Miller
|
7b086b6842
|
Quiet clang analyzer false positive.
|
2015-06-23 12:58:02 -06:00 |
|
Todd C. Miller
|
2aeeb54f3f
|
Fix uninitialized variables warnings in error case when src file
cannot be opened. At least one of these is a false positive.
|
2015-06-23 12:57:47 -06:00 |
|
Todd C. Miller
|
d36e46cb6e
|
Must call round_nfds() with fd+1 since it takes a count not the fd
number. In other words, the lowest value is 1, not 0.
|
2015-06-23 13:49:56 -06:00 |
|
Todd C. Miller
|
d7224ea502
|
It's safe to rely on C89 semantics for realloc(NULL, size).
|
2015-06-20 19:27:31 -06:00 |
|
Todd C. Miller
|
887a76489a
|
malloc() sets errno to ENOMEM on failure so we don't need to set
it explicitly.
|
2015-06-20 19:26:43 -06:00 |
|
Todd C. Miller
|
f6627e70b0
|
No longer need __malloc_like
|
2015-06-20 16:56:57 -06:00 |
|
Todd C. Miller
|
4da6468d5a
|
Remove symbols from the now-removed alloc.c.
|
2015-06-20 16:56:42 -06:00 |
|
Todd C. Miller
|
4a07b472f0
|
Only include stddef.h where it is needed.
|
2015-06-20 05:34:35 -06:00 |
|
Todd C. Miller
|
941bfe3092
|
regen
|
2015-06-19 16:50:54 -06:00 |
|
Todd C. Miller
|
d8dd6512ce
|
Better handling of setlocale() returning NULL.
|
2015-06-19 16:49:02 -06:00 |
|
Todd C. Miller
|
c36415417f
|
Add function name to "unable to allocate memory" warnings.
|
2015-06-19 14:51:17 -06:00 |
|
Todd C. Miller
|
dc883f2454
|
We require ANSI C so stop using the obsolete STDC_HEADERS.
|
2015-06-19 14:29:27 -06:00 |
|
Todd C. Miller
|
09b07fe21a
|
Add back _REENTRANT define on HP-UX to expose strtok_r on some versions.
We may need to define it on other systems too.
|
2015-06-19 12:35:51 -06:00 |
|
Todd C. Miller
|
e2328479dd
|
Use strtok_r() instead of strtok()
|
2015-06-19 12:35:51 -06:00 |
|
Todd C. Miller
|
048e251ae0
|
Fix check for strnlen() when cross-compiling.
|
2015-06-19 09:54:12 -06:00 |
|
Todd C. Miller
|
69a4af9e7b
|
Use sudo_strsplit() in dump_interfaces.
|
2015-06-19 08:57:54 -06:00 |
|
Todd C. Miller
|
4f9cabd005
|
Remove obsolete memory.h include.
|
2015-06-18 21:02:57 -06:00 |
|
Todd C. Miller
|
a50555faa2
|
Remove support for the obsolete malloc.h header.
|
2015-06-18 20:30:59 -06:00 |
|
Todd C. Miller
|
138aa2ccd1
|
Remove BROKEN_SYSLOG define which was for obsolete versions of HP-UX.
Remove last remnants of 4.2BSD syslog support.
|
2015-06-18 17:53:49 -06:00 |
|
Todd C. Miller
|
86fb8e15a8
|
Use sudo_strsplit() instead of doing the equivalent manually.
|
2015-06-18 16:14:49 -06:00 |
|
Todd C. Miller
|
db3012645e
|
Test strsplit behavior with an empty string.
|
2015-06-18 16:14:20 -06:00 |
|
Todd C. Miller
|
ea744042ed
|
Allow "make LIBTOOL=/path/to/libtool" to work properly.
|
2015-06-18 13:06:15 -06:00 |
|
Todd C. Miller
|
ac13264b44
|
Use a common function for resolviong the user's editor in sudoedit
and visudo. The find_path() function now returns a dynamically
allocated path instead of using a static string.
|
2015-06-18 09:51:36 -06:00 |
|
Todd C. Miller
|
a38253b101
|
Replace use of OSDEFS with config.h defines.
Rename DEFS in Makefile.in to CPPDEFS and include in CPPFLAGS.
Bring back _BSD_SOURCE as a config.h define.
Remove obsolescent _REENTRANT define.
|
2015-06-18 09:33:05 -06:00 |
|
Todd C. Miller
|
4be97a6c4e
|
Remove now-unused sudo_alloc.h and alloc.c
|
2015-06-17 17:00:55 -06:00 |
|
Todd C. Miller
|
cb63ca701c
|
Avoid using exiting allocators in the front end.
|
2015-06-17 17:00:54 -06:00 |
|