christos
a31e08fdfc
- test for too long username (from Greg Woods)
...
- centralize id and time_t parsing, providing better error checking of
numeric values; previously the code would accept 12foo as an expiration
or change time.
- fix issue with dereferencing null flags in compat code.
- ansify, KNF
2005-01-19 19:13:38 +00:00
mycroft
ebfdf0c012
If TIOCPTMGET fails, close /dev/ptm.
2005-01-19 01:54:09 +00:00
mycroft
e638979d5c
Use FD_CLOEXEC.
2005-01-19 00:59:48 +00:00
mycroft
ffa0d5e7ac
Also set FD_CLOEXEC in the union re-open case.
2005-01-19 00:53:33 +00:00
mycroft
ffcb3c5a45
Use FD_CLOEXEC.
2005-01-19 00:52:37 +00:00
mycroft
b7e6351cc4
hash already uses FD_CLOEXEC -- pay attention to the return value and make it
...
a hard failure.
Also make btree and recno uses FD_CLOEXEC.
2005-01-19 00:23:44 +00:00
lukem
58804647b6
Reference RFC1738 instead of RFC1808 for '%xx' encoding.
2005-01-15 21:02:51 +00:00
christos
163d05f57d
PR/28792: FUKAUMI Naoki: passwd: Couldn't generate salt: Invalid argument
...
I broke the case where /etc/passwd.conf was empty.
2005-01-15 03:07:56 +00:00
dyoung
4d24861fc9
For consistency of sockaddr_snprintf(3) with snprintf(3) and
...
snprintb(3), do not count the terminating NUL in the return value.
Update the regression tests to match. Approved by christos@.
2005-01-13 00:44:25 +00:00
wiz
379e07e3ac
Use \*[Am] and \*[Gt], like before the previous revision; use .In; minor other changes.
2005-01-12 14:44:11 +00:00
wiz
c3005f5671
Use .In for including header files, remove some unnecessary quotes.
2005-01-12 14:35:55 +00:00
christos
d1ac9947b2
fix compile issue.
2005-01-12 05:27:48 +00:00
christos
d205f30a4b
fix compile issue and de-lint
2005-01-12 05:27:35 +00:00
christos
c9cb0c3bbd
adapt to pw_gensalt() change.
2005-01-12 03:36:12 +00:00
christos
4c3e77eff3
add pw_getpwconf(), bump.
2005-01-12 03:34:33 +00:00
christos
3131ddcccc
- change the gensalt functions to take an optional string instead of
...
the number of rounds.
- make pw_gensalt() more generic, so that it does not depend in libutil.
2005-01-12 03:32:52 +00:00
christos
1a791fa81d
eliminate the third copy of pwd_gensalt.
2005-01-11 23:23:33 +00:00
christos
6252af1a9f
sprinkle ARGSUSED and include "crypt.h"
2005-01-11 23:21:31 +00:00
christos
b181dae89f
only get the rounds if we have them.
2005-01-11 23:02:30 +00:00
christos
7724b89cd5
add local prototype for old salt function
2005-01-11 23:02:16 +00:00
christos
8cfd209e8e
Add pw_gensalt, which was taken from pwd_gensalt. This now is used in 3
...
places, so it might as well be part of libcrypt.
2005-01-11 22:41:07 +00:00
christos
21356b2c66
use the standard __UNCONST
2005-01-11 22:40:22 +00:00
christos
0fc4f2b291
- remove local UNCONST
...
- add new __gensalt functions
2005-01-11 22:40:00 +00:00
christos
2c53ed1484
Write __gensalt_blowfish function that does not use static storage and
...
can return an error. Make the old bcrypt_gensalt() function use that.
XXX: should gc bcrypt_gensalt(). What uses it?
2005-01-11 22:39:21 +00:00
itojun
f6b6f2cd66
written-from-scratch manpage (fixes ISOC copyright violation)
2005-01-11 07:26:57 +00:00
itojun
2537b08b16
replace with written-from-scratch manpage. (fixes ISOC copyright issue)
2005-01-11 06:01:41 +00:00
lukem
1e281ed227
Only #define HAVE_IPV6 if ${USE_INET6} != "no".
2005-01-10 03:11:17 +00:00
lukem
7157011597
Only compile in IPv6 support if ${USE_INET6} != "no"
...
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
lukem
9505ced464
minor whitespace consistency
2005-01-10 02:32:46 +00:00
he
67d66c86bb
Don't build libpam and associated bits if the target platform doesn't
...
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.
Discussed with christos and lukem.
2005-01-10 00:20:21 +00:00
christos
8ef68a6575
document PT_DUMPCORE.
2005-01-09 17:41:19 +00:00
dyoung
81e590905d
Bump minor version for libpcap 0.8.3 import.
...
Thanks Julian Coleman for pointing out my oversight.
2005-01-09 11:57:34 +00:00
christos
b725a0a1fa
add a cast and remove another.
2005-01-09 05:04:02 +00:00
nathanw
efffd0e96a
pthread_rwlock_timedrdlock() and pthread_rwlock_timedwrlock():
...
After exiting the try-again loop, make one more test of the lock
conditions, in case it was released while a signal handler kept the
thread busy past the alarm expiration.
2005-01-09 01:57:38 +00:00
nathanw
6a562a3a84
pthread_rwlock_timedrdlock() and pthread_rwlock_timedwrlock():
...
Expand the test for valid values of abs_timeout to check for negative
values of tv_sec and tv_nsec.
2005-01-09 01:47:20 +00:00
manu
d26d1599e6
Missing man page: login.access(5)
2005-01-08 22:56:21 +00:00
lukem
b91c938d5f
delint -UINET6
2005-01-08 22:48:42 +00:00
lukem
6463b925a7
Build librpcsvc as a shared library, since pam_unix.so needs it.
2005-01-08 10:02:36 +00:00
christos
a72527f7ce
add -DDEBUG to the build for now
2005-01-08 08:39:48 +00:00
christos
ca7489bf5c
Avoid spinning if writing to a pty returns 0. This happened to me when
...
I had a pty with a suspended sshd (why?).
2005-01-08 06:43:16 +00:00
mycroft
f38bfebb8e
Throw in mutex stubs to serialize access to the legacy global structures.
2005-01-07 22:22:49 +00:00
simonb
f2cd0bb8b0
Remove the old userland version of getcwd(): it's been #ifdef'd out
...
since 1999 when we switched to a (faster) system call based getcwd(),
and as shown recently has had some buffer size problems anyway (although
they have since been fixed).
2005-01-06 23:43:32 +00:00
jmmv
3b31a140fa
Fix a typo and add a missing blank line.
2005-01-06 20:31:12 +00:00
mycroft
6951dd53b1
Fix a pasto.
2005-01-06 17:42:31 +00:00
mycroft
077972bfb2
Replace the even-odd test for incrementing unblockgen with a simple
...
blockgen!=unblockgen. I'm not sure this is 100% correct, but it partly
alleviates a problem with multiple unblocks for the same thread getting
stacked up.
2005-01-06 17:40:22 +00:00
mycroft
75a9478818
Add some additional assertions and debugging printf()s.
2005-01-06 17:38:29 +00:00
mycroft
e890aef258
Use TIMER_RELTIME rather than the constant 0 in one place.
2005-01-06 17:34:52 +00:00
mycroft
8fa85b4a65
gettimeofday();TIMEVAL_TO_TIMESPEC(); is exactly equivalent to
...
clock_gettime(CLOCK_REALTIME), except the latter may have more preicison
some day. So, use that.
2005-01-06 17:33:36 +00:00
ginsbach
9d30c15dda
Add EPERM to fchmod() failure list.
2005-01-06 16:30:52 +00:00
lukem
b351350a6f
document getgroupmembership(3)
2005-01-06 15:29:35 +00:00