Todd C. Miller
da95b0ea58
setgroups() proto lives in grp.h on RHEL4, perhaps others.
2011-08-23 10:14:52 -04:00
Todd C. Miller
cb63967bfd
Fix setgroups() fallback code on EINVAL.
2011-07-22 15:33:33 -04:00
Todd C. Miller
022591f4bf
Add a wrapper for setgroups() that trims off extra groups and retries
...
if setgroups() fails. Also add some missing addrefs for PERM_USER
and PERM_FULL_USER.
2011-07-20 16:54:12 -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
78e235945f
Auto-generate Makefile dependencies with a perl script.
2011-05-25 09:02:25 -04:00
Todd C. Miller
bd36d4f2ab
Add primitive format string support to the lbuf code to make translations
...
simpler.
2011-05-20 15:25:03 -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
e42331fd5a
getuserattr(user, ...) will fall back to the "default" entry
...
automatically, there's no need to check "default" manually.
2011-03-30 08:54:38 -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
9e65afc15f
Fix printing of the remainder after a newline. Fixes "sudo -l" output
...
corruption that could occur in some cases.
2011-03-16 10:26:10 -04:00
Todd C. Miller
53da5e8cdf
Update copyright years.
2011-03-11 15:34:35 -05:00
Todd C. Miller
151af93022
Truncate the buffer at buf.len before printing in the non-wordwrap case.
2011-02-14 11:28:44 -05:00
Todd C. Miller
ec00a1b588
Remove extra newline when the tty width is very small or unavailable
2011-02-14 11:04:24 -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
f7f8b6867e
Update copyright year to 2011
2011-01-20 16:46:56 -05:00
Todd C. Miller
4f953d8391
Clear, don't set, OPOST in c_oflag as was intended in 506ad5ae9b4e.
2011-01-18 11:26:48 -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
6505d10ccf
Clear OPOST from c_oflag like we used to. Fixes screen-based editors
...
such as vi.
2010-12-21 12:22:07 -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
48d7c78330
Cast isblank argument to unsigned char.
2010-09-16 10:39:08 -04:00
Todd C. Miller
fdf877d53b
Do not need sys/time.h after all
2010-09-13 13:20:35 -04:00
Todd C. Miller
702a2bff2b
Include sys/time.h for utimes() and struct timeval.
...
No longer need ioctl.h or termios.h
2010-09-13 13:17:26 -04:00
Todd C. Miller
1490269899
Include memory.h on systems that need it.
2010-09-13 10:40:53 -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
a68c31306c
Convert a remaining puts() and putchar() to use the output function.
2010-08-20 16:53:21 -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
f3b397be0f
setauthdb() only sets the "old" registry if it was set by a previous
...
call to setauthdb(). To restore the original value, passing NULL
(or an empty string) to setauthdb() is sufficient.
2010-07-20 12:40:37 -04:00
Todd C. Miller
a33996e740
install-man -> install-doc
2010-07-13 08:36:19 -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
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
e5283b2f96
Require POSIX termios to build sudo
2010-06-09 11:09:55 -04:00
Todd C. Miller
40e591c309
Extend atobool() so we can use it in the LDAP code.
2010-06-03 08:50:02 -04:00
Todd C. Miller
2ee7524101
Add casts to quiet compiler warnings.
2010-06-01 09:54:03 -04:00
Todd C. Miller
303d856065
Minor Makefile cleanup: fix a typo, change the removal order in
...
the clean targets, and remove a superfluous include path for
the sudoers plugin.
2010-05-28 10:41:58 -04:00
Todd C. Miller
c4feed1ccd
Move code common to sudo and the sudoers plugin to a convenience library,
...
libcommon. Removes the need to make links in the sudoers plugin dir
and reduces re-compilation of duplicate object files.
2010-05-27 17:29:09 -04:00
Todd C. Miller
b8b006a885
Move code common to sudo and the sudoers plugin to a convenience library,
...
libcommon. Removes the need to make links in the sudoers plugin dir
and reduces re-compilation of duplicate object files.
2010-05-27 17:27:36 -04:00