Commit Graph

2416 Commits

Author SHA1 Message Date
Todd C. Miller
f32e054fe5 Make login class support work on BSD/OS 2000-03-24 20:13:12 +00:00
Todd C. Miller
5b84f29486 Update for 1.6.3 2000-03-24 01:24:48 +00:00
Todd C. Miller
1f343c7a0f If there is no inet_addr but there *is* an __inet_addr that's ok since
inet_addr is probably just a macro then.  The better thing to do would
be to look for the macro, but this is fine for now.
2000-03-24 01:23:05 +00:00
Todd C. Miller
6814458ab3 Don't use shlicc for BSD/OS 4.x 2000-03-24 00:50:30 +00:00
Todd C. Miller
b0bbcfc187 *.man lives in cwd, *.cat lives in $(srcdir), add a @mansrcdir@
configure variable so we can deal with this.
Also, only remove *.man for 'distclean' not 'clean'.
2000-03-24 00:40:55 +00:00
Todd C. Miller
fed49d49eb set_loginclass() should be static like the proto says 2000-03-24 00:16:41 +00:00
Todd C. Miller
7ffc5a9fae Add #ifdef __STDC__ around the rangematch function header to avoid
promotion of test to int, thus violating the prototype.  Gcc handles
this gracefully but more std ANSI compilers will complain.
2000-03-23 19:14:03 +00:00
Todd C. Miller
9a41ebe722 Pull in newer fnmatch(3) that supports FNM_CASEFOLD 2000-03-23 15:11:56 +00:00
Todd C. Miller
4fc832c6c2 Pull in newer fnmatch(3) that supports FNM_CASEFOLD
Check for FNM_CASEFOLD in configure
2000-03-23 15:11:50 +00:00
Todd C. Miller
e5bd3d9683 update for 1.6.3 2000-03-23 04:41:29 +00:00
Todd C. Miller
ffca544b6c Fully qualified hosts w/ wildcards were not matching the FQHOST token type.
There's really no need for a separate token for fully-qualified vs.
unqualified anymore so FQHOST is now history and hostname_matches
now decides which hostname (short or long) to check based on whether
or not the pattern contains a '.'.
2000-03-23 04:38:22 +00:00
Todd C. Miller
d72d7ec3fd Fully qualified hosts w/ wildcards were not matching the FQHOST token type.
There's really no need for a separate token for fully-qualified vs.
unqualified anymore so FQHOST is now history and hostname_matches
now decides which hostname (short or long) to check based on whether
or not the pattern contains a '.'.
2000-03-23 04:38:20 +00:00
Todd C. Miller
9aeabf1b03 Fully qualified hosts w/ wildcards were not matching the FQHOST token type.
There's really no need for a separate token for fully-qualified vs.
unqualified anymore so FQHOST is now history and hostname_matches
now decides which hostname (short or long) to check based on whether
or not the pattern contains a '.'.
2000-03-23 04:38:20 +00:00
Todd C. Miller
5ce1fa96f2 Add support for wildcards in the hostname. 2000-03-23 04:09:53 +00:00
Todd C. Miller
c232acbfce Add targets for *.man.in, using config.status to generate *.man from *.man.in 2000-03-23 03:50:54 +00:00
Todd C. Miller
4c8b4fad56 Document set_logname option and enbolden refs to sudo and visudo. 2000-03-23 03:20:57 +00:00
Todd C. Miller
d168a21cee Add FreeBSD login.conf support (untested on BSD/OS) based on a patch from
Michael D. Marchionna.
configure now does substitution on the man pages, allowing us to
fix up the paths and set the section correctly.  Based on an idea
from Michael D. Marchionna.
2000-03-23 00:35:59 +00:00
Todd C. Miller
4d4ed8c166 Better fix for handling HP-UX aging info. 2000-03-23 00:27:41 +00:00
Todd C. Miller
78b6514e58 Add support for set_logname run-time default 2000-03-23 00:20:56 +00:00
Todd C. Miller
7cd18cf366 configure does substitution on these to produce *.man 2000-03-23 00:17:30 +00:00
Todd C. Miller
2a154e4ff8 These files now get generated from *.man.in at configure time. 2000-03-23 00:16:46 +00:00
Todd C. Miller
f7ed0b0df3 Add set_logname option so users can turn off setting of LOGNAME/USER
environment variables.
2000-03-22 23:40:09 +00:00
Todd C. Miller
db2c555453 kill register 2000-03-22 15:53:09 +00:00
Todd C. Miller
cbd8898687 HP-UX adds extra info at the end for password aging so when comparing
the result of crypt to pw_passwd we only compare the first len(epass)
bytes *unless* the user entered an empty string for a password.
2000-03-13 20:52:25 +00:00
Todd C. Miller
a6ad7f071c Get rid of grandchild hack, it was causing problems and there is really
no need for it.  This fixes a bug where we spin eating up CPU when the
user runs a long-running process like a shell.
2000-03-13 16:05:05 +00:00
Todd C. Miller
5684831592 User can always specify a login class if he/she is already root. 2000-03-07 19:26:02 +00:00
Todd C. Miller
935a51e76a FreeBSD login class (login.conf) support. 2000-03-07 04:29:46 +00:00
Todd C. Miller
4ea67119ea HAVE_SECUREWARE -> HAVE_GETPRPWNAM; fixes secureware support 2000-03-06 19:42:21 +00:00
Todd C. Miller
8a7226ad7d Truncate unencrypted password to 8 chars if encrypted password is exactly
13 characters (indicateing standard a DES password).  Many versions
of crypt() do this for you, but not all (like HP-UX's).
2000-03-03 23:04:50 +00:00
Todd C. Miller
02cbda9995 Mention that gcc on dynix may have problems 2000-03-02 02:01:16 +00:00
Todd C. Miller
39e191bca8 Link visudo with NET_LIBS since we now call syslog via defaults.c 2000-02-29 22:46:32 +00:00
Todd C. Miller
f8b1e595a9 Use Argv[0] as the first arg to openlog() since visudo uses this too. 2000-02-29 22:41:40 +00:00
Todd C. Miller
24f8ee8807 Stash coredumpsize resource limit and retsore it before the exec()
Otherwise the child ends up with a coredumpsize of 0.
2000-02-28 23:58:17 +00:00
Todd C. Miller
f7fa520540 document -S flag 2000-02-27 03:56:41 +00:00
Todd C. Miller
f1c2ba6aa2 fix usage string 2000-02-27 03:54:20 +00:00
Todd C. Miller
54fbe08545 Added -S flag (read passwd from stdin) and tgetpass_flags global
that holds flags to be passed in to tgetpass().  Change echo_off
param to tgetpass() into a flags field.  There are currently 2
possible flags for tgetpass(): TGP_ECHO and TGP_STDIN.  In tgetpass(),
abstract the echo set/clear via macros and if (flags & TGP_ECHO)
but echo is not set on the terminal, but sure to set it.
2000-02-27 03:49:07 +00:00
Todd C. Miller
de44c711bb Fixed a bug that caused an infinite loop when the password timeout was disabled. 2000-02-27 03:11:23 +00:00
Todd C. Miller
09b23e7b41 Add rootpw, runaspw, and targetpw options. 2000-02-18 17:56:28 +00:00
Todd C. Miller
44c5092fab enveditor -> env_editor 2000-02-18 17:11:43 +00:00
Todd C. Miller
73946622ba crank versino to 1.6.3 2000-02-16 00:07:28 +00:00
Todd C. Miller
020125336c Add 'editor' and 'enveditor' sudoers defaults and make visudo honor them.
This means that visudo will now parse the sudoers file *before* it is
edited so a bogus sudoers file will cause a warning to go to stderr.
Also, visudo checks the variables once--it does not check them after
each editor run since that could be confusing.
2000-02-16 00:03:44 +00:00
Todd C. Miller
43050cc49c 1.6.2 -> 1.6.2p1 2000-02-15 23:49:48 +00:00
Todd C. Miller
fc08d7004c Move user_is_exempt prototype into sudo.h 2000-02-15 23:36:04 +00:00
Todd C. Miller
82b60ddc2f Fix thinko, some && should have been || in the last commit 2000-02-13 18:38:14 +00:00
Todd C. Miller
26b93e27fb Don't initialized Makefile variables to be NULL since the user may
want to import variables from their environment.
2000-02-13 18:28:04 +00:00
Todd C. Miller
36a249399c typo 2000-02-04 02:09:02 +00:00
Todd C. Miller
30c5e442ff fix a yacc (skeleton.c) warning 2000-01-28 01:41:33 +00:00
Todd C. Miller
a4f529eaec Make pam work on HP-UX 11.0;jaearick@colby.edu 2000-01-27 20:01:37 +00:00
Todd C. Miller
364a4bef7d recent changes; prepare for 1.6.2p1 2000-01-27 20:01:35 +00:00
Todd C. Miller
bffb27280b Don't apply SECURE_PATH if user is example; jmknoble@pobox.com 2000-01-27 04:31:58 +00:00