Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | If no old_pw was passed to pw_copy, compare just the name. | Dag-Erling Smørgrav | 2002-05-08 | 1 | -1/+2 | |
| | | | | Sponsored by: DARPA, NAI Labs | |||||
* | Add passwd manipulation code based on parts of vipw and chpass. | Dag-Erling Smørgrav | 2002-05-08 | 2 | -82/+433 | |
| | | | | Sponsored by: DARPA, NAI Labs | |||||
* | Make mppath and masterpasswd pointers instead of arrays, and initialize | Dag-Erling Smørgrav | 2002-04-17 | 1 | -2/+4 | |
| | | | | | | | | | them to point at static strings that contain the default paths. This makes 'vipw -d' work again (I broke it in rev 1.21; apologies for taking so long to fix it.) Spotted by: Olivier Houchard <doginou@cognet.ci0.org> Sponsored by: DARPA, NAI Labs | |||||
* | Remove bogus reference to _use_yp. | Dag-Erling Smørgrav | 2002-04-15 | 1 | -9/+1 | |
| | ||||||
* | Const poisoning. | Ruslan Ermilov | 2002-04-08 | 3 | -14/+14 | |
| | ||||||
* | Remove multi-line __P() usage. | David E. O'Brien | 2002-03-22 | 1 | -8/+7 | |
| | ||||||
* | Remove __P() usage. | David E. O'Brien | 2002-03-21 | 2 | -64/+64 | |
| | ||||||
* | Remove a bogus cast. | Dag-Erling Smørgrav | 2002-03-06 | 1 | -1/+1 | |
| | ||||||
* | #include <stddef.h> for the definition of NULL instead of depending on | Bruce Evans | 2002-02-25 | 1 | -1/+3 | |
| | | | | | | namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes. | |||||
* | ANSIfy and constify. | Dag-Erling Smørgrav | 2002-02-05 | 1 | -17/+15 | |
| | | | | Sponsored by: DARPA, NAI Labs | |||||
* | Add __FBSDID()s to libutil | Matthew Dillon | 2001-09-30 | 3 | -6/+8 | |
| | ||||||
* | 1) Back out ~/.login_conf disable | Andrey A. Chernov | 2001-09-25 | 1 | -6/+5 | |
| | | | | 2) Pick only "me" class from ~/.login_conf as documented | |||||
* | Disable per-user .login_conf support due to incorrect merging of local | Robert Watson | 2001-09-16 | 1 | -0/+3 | |
| | | | | | | and globaly settings. An alternative implementation will be developed. Reported by: Przemyslaw Frasunek <venglin@freebsd.lublin.pl> | |||||
* | o Add a comment noting that the early setting of privileges for the purpose | Robert Watson | 2001-09-15 | 1 | -2/+6 | |
| | | | | | | | of NFS home directory and root directory processing fails to include additional groups. This doesn't impact the final credential, but does mean that users may be denied login even when additional groups might allow it. | |||||
* | remove emalloc,ecalloc,erealloc,estrdup | Assar Westerlund | 2001-07-23 | 1 | -4/+0 | |
| | ||||||
* | add ecalloc, emalloc, erealloc, estrdup - versions of the e-less | Assar Westerlund | 2001-07-22 | 1 | -0/+4 | |
| | | | | functions that exit instead of failing | |||||
* | Fix the type of the NULL arg to execl() | Brian Somers | 2001-07-09 | 1 | -3/+3 | |
| | | | | Idea from: Theo de Raadt <deraadt@openbsd.org> | |||||
* | Don't pass NULL to the %s format. | Dima Dorfman | 2001-04-22 | 1 | -2/+6 | |
| | | | | Reviewed by: kris | |||||
* | o Slap some "_"'s in front of variable names relating to extattr functions, | Robert Watson | 2001-03-22 | 1 | -3/+3 | |
| | | | | | | so as not to pollute application namespace. Submitted by: bde | |||||
* | o Rename "namespace" argument to "attrnamespace" as namespace is a C++ | Robert Watson | 2001-03-19 | 1 | -2/+3 | |
| | | | | | | | | reserved word, causing breakage when a C++ program included libutil.h This change will be propagated elsewhere shortly. Submitted by: jkh Obtained from: TrustedBSD Project | |||||
* | o To support new EA interface with explicit namespaces, introduce two | Robert Watson | 2001-03-15 | 1 | -0/+2 | |
| | | | | | | | | | | | utility functions which convert between string namespace names and numeric constants used by the interface. Right now, two namespaces are supported, EXTATTR_NAMESPACE_SYSTEM ("system") and EXTATTR_NAMESPACE_USER ("user"). These functions are used by various userland EA utilities, rather than hard coding the routines all over the place. Obtained from: TrustedBSD Project | |||||
* | Fix typo: seperate -> separate. | Jeroen Ruigrok van der Werven | 2001-02-06 | 1 | -2/+2 | |
| | | | | | | Seperate does not exist in the english language. Submitted to look at by: kris | |||||
* | Added PROPERTY_MAX_VALUE and PROPERTY_MAX_NAME defines to libutil.h so | Murray Stokely | 2000-11-08 | 1 | -0/+3 | |
| | | | | | | | that applications know how large of a buffer they must allocate before calling property_find(). Also added a $FreeBSD$ tag while I'm here. Approved by: jkh | |||||
* | Fix problems people were having with large -O levels with GCC and | Brian Feldman | 2000-10-27 | 1 | -7/+6 | |
| | | | | | | | | | | getting libutil/libcrypt to work properly. I've determined that GCC thinks it can inline all functions, including weak-symboled ones, if it feels like it. Create a new stub.c and move any stubs there to prevent inlining. Thanks to jdp and William S. Duncanson for helping me finally find the problem. | |||||
* | Constify the arg to logout(3). It is const-safe. | Peter Wemm | 2000-09-04 | 1 | -1/+1 | |
| | | | | (cosmetic: drop some "register" qualifications too.) | |||||
* | Move setproctitle() from libutil to libc (after a repo-copy) | Brian Somers | 2000-09-02 | 1 | -1/+0 | |
| | | | | | | | | | and bump __FreeBSD_version to 500012 to mark the occasion. setproctitle() is prototyped in unistd.h as opposed to stdlib.h where OpenBSD and NetBSD have it. Reviewed by: peter | |||||
* | Add weak symbol pragma for crypt_set_format(). | Jeroen Ruigrok van der Werven | 2000-08-23 | 1 | -0/+6 | |
| | | | | Approved by: green | |||||
* | Stick login_setcryptfmt() in its own file to make pulling in of | Brian Feldman | 2000-08-23 | 2 | -13/+44 | |
| | | | | -lcrypt only happen if truly necessary. | |||||
* | Add working and easy crypt(3)-switching. Yes, we need a whole new API | Brian Feldman | 2000-08-22 | 2 | -0/+14 | |
| | | | | | | | | | | | | | | for crypt(3) by now. In any case: Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8). The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :) Reviewed by: peter | |||||
* | Don't call warn() without a format string. | Kris Kennaway | 2000-07-12 | 1 | -1/+1 | |
| | ||||||
* | Fix a memory leak with lc->lc_cap in login_close(). | Tim Vanderhoek | 2000-05-21 | 1 | -0/+1 | |
| | | | | PR: bin/17084 | |||||
* | Use a more conventional copyright message. | Peter Wemm | 2000-01-26 | 1 | -9/+14 | |
| | ||||||
* | several tcp apps IPv6 update | Yoshinobu Inoue | 2000-01-25 | 1 | -0/+3 | |
| | | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project | |||||
* | Connect fparseln(3) for mailwrapper(8) | Peter Wemm | 1999-12-29 | 1 | -0/+10 | |
| | ||||||
* | $Id$ -> $FreeBSD$ | Peter Wemm | 1999-08-28 | 1 | -1/+1 | |
| | ||||||
* | $Id$ -> $FreeBSD$ | Peter Wemm | 1999-08-28 | 4 | -4/+4 | |
| | ||||||
* | Move call to umask(0) back into pw_util(), because the latter | Pierre Beyssac | 1999-06-29 | 1 | -1/+4 | |
| | | | | function is also used by chpass(1) and passwd(1). | |||||
* | Force umask to 077 (instead of 000) during the edit phase, to get | Pierre Beyssac | 1999-06-26 | 1 | -4/+1 | |
| | | | | | | | | | | secure permissions in case the user attempts to save something to a file of his own. Move umask stuff out of pw_init() into main() for better visibility of overall umask tweaking logic. PR: misc/11797 | |||||
* | Add -d option to vipw(8) to allow selection of an alternative directory | Sheldon Hearn | 1999-06-26 | 1 | -8/+14 | |
| | | | | | | | for the password files. PR: 2703 Submitted by: jmg | |||||
* | oops, add pwd!=NULL check to previous fix | Andrey A. Chernov | 1999-04-24 | 1 | -11/+17 | |
| | ||||||
* | Switch to user UID/GID before checking/reading its ~/.login_conf | Andrey A. Chernov | 1999-04-24 | 1 | -1/+14 | |
| | | | | - some NFSes have root read access disabled | |||||
* | Add realhostname() - a function to correctly lookup | Brian Somers | 1999-04-06 | 1 | -1/+9 | |
| | | | | | a name by address and ensure that the name resolves back to the original address. | |||||
* | Declare setproctitle() as printf0-like. | Bruce Evans | 1998-12-16 | 1 | -2/+2 | |
| | ||||||
* | oops. Fix indentation of the 'for' loop I just added. | Matthew Dillon | 1998-12-13 | 1 | -18/+18 | |
| | ||||||
* | Handle the race condition where vipw may lock a password file which has | Matthew Dillon | 1998-12-13 | 1 | -6/+22 | |
| | | | | | just been replaced. After our lock succeeds we check if st_nlink is 0 and if it is we close the descriptor and retry our open/lock sequence. | |||||
* | Since vfork() was changed to fork(), we have to pass errno back from the | Dag-Erling Smørgrav | 1998-10-20 | 1 | -3/+6 | |
| | | | | | | | child to the parent somehow. PR: 8353 Submitted by: Andrew J. Korty <ajk@purdue.edu> | |||||
* | Calls one or more of malloc(), warn(), err(), syslog(), execlp() or | Dag-Erling Smørgrav | 1998-10-13 | 1 | -3/+3 | |
| | | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde | |||||
* | Now take stdio.h out of files that don't require it. | Jordan K. Hubbard | 1998-10-09 | 1 | -2/+1 | |
| | ||||||
* | o move path in libutil.h to paths.h | Jordan K. Hubbard | 1998-10-09 | 1 | -2/+2 | |
| | | | | | o make property_read() take a fd instead to avoid stdio.h mess o update auth to new interface. | |||||
* | Take the path spec back out. | Jordan K. Hubbard | 1998-10-09 | 1 | -4/+1 | |
| |