Commit Graph

9839 Commits

Author SHA1 Message Date
manu 08ad2c449b Set correct default for the nologin file: /etc/nologin
Handle the ignorenologin capability
2005-01-23 09:45:02 +00:00
enami b2ed183e5b - Remove macros used only by old getcwd() implementation.
- Fix memory leak on error. (I guess the loop isn't necessary but
  it is different matter).
- Remove knowledge about old malloc implementation.
2005-01-23 01:00:51 +00:00
briggs a665897c6f Bring in sem_open (& sem_close & sem_unlink) man page from FreeBSD.
These functions are actually implemented, but the old man page said that
they simply returned with errors--it was apparently out of date at the
time of import.
2005-01-22 03:16:33 +00:00
christos a10b4794fd change long -> unsigned long 2005-01-20 21:53:23 +00:00
christos 8817e95118 remove debugging printf. 2005-01-20 21:11:56 +00:00
kleink 774c973096 Note ENOATTR; from FreeBSD. 2005-01-20 13:23:57 +00:00
kleink b2f3ea1a33 Add ENOATTR (and a missing comma); noted by Takehiko NOZAKI. 2005-01-20 13:14:09 +00:00
christos b1c3c94911 Improve error messages. 2005-01-19 22:59:24 +00:00
christos b51e7f1581 - fix initialization of dowarn [use before set, thanks luke]
- always initialize flags so that we don't have to check for it.
- use the consistent variable names in functions.
2005-01-19 22:40:37 +00:00
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