summaryrefslogtreecommitdiffstats
path: root/libutil
Commit message (Collapse)AuthorAgeFilesLines
* Add __FBSDID()s to libutilMatthew Dillon2001-09-303-6/+8
|
* 1) Back out ~/.login_conf disableAndrey A. Chernov2001-09-251-6/+5
| | | | 2) Pick only "me" class from ~/.login_conf as documented
* Disable per-user .login_conf support due to incorrect merging of localRobert Watson2001-09-161-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 purposeRobert Watson2001-09-151-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,estrdupAssar Westerlund2001-07-231-4/+0
|
* add ecalloc, emalloc, erealloc, estrdup - versions of the e-lessAssar Westerlund2001-07-221-0/+4
| | | | functions that exit instead of failing
* Fix the type of the NULL arg to execl()Brian Somers2001-07-091-3/+3
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Don't pass NULL to the %s format.Dima Dorfman2001-04-221-2/+6
| | | | Reviewed by: kris
* o Slap some "_"'s in front of variable names relating to extattr functions,Robert Watson2001-03-221-3/+3
| | | | | | so as not to pollute application namespace. Submitted by: bde
* o Rename "namespace" argument to "attrnamespace" as namespace is a C++Robert Watson2001-03-191-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 twoRobert Watson2001-03-151-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 Werven2001-02-061-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 soMurray Stokely2000-11-081-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 andBrian Feldman2000-10-271-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 Wemm2000-09-041-1/+1
| | | | (cosmetic: drop some "register" qualifications too.)
* Move setproctitle() from libutil to libc (after a repo-copy)Brian Somers2000-09-021-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 Werven2000-08-231-0/+6
| | | | Approved by: green
* Stick login_setcryptfmt() in its own file to make pulling in ofBrian Feldman2000-08-232-13/+44
| | | | -lcrypt only happen if truly necessary.
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIBrian Feldman2000-08-222-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 Kennaway2000-07-121-1/+1
|
* Fix a memory leak with lc->lc_cap in login_close().Tim Vanderhoek2000-05-211-0/+1
| | | | PR: bin/17084
* Use a more conventional copyright message.Peter Wemm2000-01-261-9/+14
|
* several tcp apps IPv6 updateYoshinobu Inoue2000-01-251-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 Wemm1999-12-291-0/+10
|
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
|
* $Id$ -> $FreeBSD$Peter Wemm1999-08-284-4/+4
|
* Move call to umask(0) back into pw_util(), because the latterPierre Beyssac1999-06-291-1/+4
| | | | function is also used by chpass(1) and passwd(1).
* Force umask to 077 (instead of 000) during the edit phase, to getPierre Beyssac1999-06-261-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 directorySheldon Hearn1999-06-261-8/+14
| | | | | | | for the password files. PR: 2703 Submitted by: jmg
* oops, add pwd!=NULL check to previous fixAndrey A. Chernov1999-04-241-11/+17
|
* Switch to user UID/GID before checking/reading its ~/.login_confAndrey A. Chernov1999-04-241-1/+14
| | | | - some NFSes have root read access disabled
* Add realhostname() - a function to correctly lookupBrian Somers1999-04-061-1/+9
| | | | | a name by address and ensure that the name resolves back to the original address.
* Declare setproctitle() as printf0-like.Bruce Evans1998-12-161-2/+2
|
* oops. Fix indentation of the 'for' loop I just added.Matthew Dillon1998-12-131-18/+18
|
* Handle the race condition where vipw may lock a password file which hasMatthew Dillon1998-12-131-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 theDag-Erling Smørgrav1998-10-201-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() orDag-Erling Smørgrav1998-10-131-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. Hubbard1998-10-091-2/+1
|
* o move path in libutil.h to paths.hJordan K. Hubbard1998-10-091-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. Hubbard1998-10-091-4/+1
|
* All these have to include stdio.h now.Jordan K. Hubbard1998-10-091-1/+2
|
* remove stdio.h include; I forgot Bruce's cardinal rule that header filesJordan K. Hubbard1998-10-081-2/+1
| | | | | | shouldn't include other ones (which, unfortunately, is also a hellish rule since he broke interfaces like sysctl this way by requiring undocumented header files to be included just in order to be able to use them now - SIGH!).
* Add a simple mechanism for reading property lists from files (whichJordan K. Hubbard1998-10-071-1/+16
| | | | | | | I'll convert sysinstall to use shortly) and a simple call which uses this mechanism to implement an /etc/auth.conf file. I'll let Mark Murray handle the format and checkin of the sample auth.conf file. Reviewed by: markm
* Add missing uu_lock_txfr() prototypeAndrey A. Chernov1998-06-051-1/+2
|
* Trim a domain part for wtmp as same as showed by "netstat -r".Atsushi Murai1998-06-011-2/+2
| | | | | | | | | | | | | Here is a some example for avoiding a confusion. It asssumes a logged host domain is "spec.co.jp". All example is longer than UT_HOSTNAMELEN value. 1) turbo.tama.spec.co.jp: 192.19.0.2 -> trubo.tama 2) turbo.tama.foo.co.jp : 192.19.0.2 -> 192.19.0.2 3) specgw.spec.co.jp : 202.32.13.1 -> specgw Submitted by: Atsushi Murai <amurai@spec.co.jp>
* Add uu_lock_txfr() to transfer ownership of a successfulBrian Somers1998-05-281-1/+3
| | | | uu_lock() to another process.
* Statisize usage().Philippe Charnier1997-10-271-1/+4
|
* Changes to support full make parallelism (-j<n>) in the worldJordan K. Hubbard1997-10-051-3/+3
| | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
* Endless loop.Wolfram Schneider1997-09-291-5/+5
| | | | | | | | | | | $ vipw [corrupt a line in editor, exit editor] pwd_mkdb: corrupted entry pwd_mkdb: at line #2 pwd_mkdb: /etc/pw.012585: Inappropriate file type or format re-edit the password file? [y]: n^D^D [hang]
* The parameters to logwtmp should be const char'sPaul Traina1997-09-041-2/+2
|