summaryrefslogtreecommitdiffstats
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* If no old_pw was passed to pw_copy, compare just the name.des2002-05-081-1/+2
| | | | Sponsored by: DARPA, NAI Labs
* Add passwd manipulation code based on parts of vipw and chpass.des2002-05-083-86/+438
| | | | Sponsored by: DARPA, NAI Labs
* login(3) doesn't care about the controlling terminal any more.des2002-04-201-1/+1
|
* Fix for the sshd(8) utmp problem. Previously, login(3) would ignore the ttydes2002-04-201-3/+9
| | | | | | | | | | | | | | | named by its argument and use ttyslot(3) instead to determine what slot to use. The problem is that sshd(8) calls pam_open_session(3) before forking the child (as it should), at which point it does not have a controlling terminal. Also, ttyslot(3) is very crude as it assumes fd 0, 1 or 2 refers to the controlling terminal, which is usually (but not always) the case. Instead of using ttyslot(3) to determine the slot number, look up the specified tty in /etc/ttys ourselves (this is what ttyslot(3) does anyway). (perforce change 9969) Sponsored by: DARPA, NAI Labs
* Make mppath and masterpasswd pointers instead of arrays, and initializedes2002-04-171-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
* Add a missing cross-ref.ceri2002-04-161-1/+2
| | | | | Approved by: murray MFC after: 1 week
* Remove bogus reference to _use_yp.des2002-04-151-9/+1
|
* Const poisoning.ru2002-04-086-28/+26
|
* Remove multi-line __P() usage.obrien2002-03-221-8/+7
|
* Remove __P() usage.obrien2002-03-213-66/+66
|
* Remove 'register' keyword.obrien2002-03-212-3/+3
|
* Remove a bogus cast.des2002-03-061-1/+1
|
* Correct a typo.dd2002-03-031-1/+1
| | | | | PR: 35273 Submitted by: Nicola Vitale <nivit@libero.it>
* #include <time.h> for the definition of time functions instead ofbde2002-02-251-1/+2
| | | | | | depending on namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes.
* #include <stddef.h> for the definition of NULL instead of depending onbde2002-02-251-1/+3
| | | | | | namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes.
* ANSIfy and constify.des2002-02-051-17/+15
| | | | Sponsored by: DARPA, NAI Labs
* o Reflect repo-copy of extattr.[c3] from libutil to libc, movingrwatson2001-11-163-181/+1
| | | | | | | | extattr namespace routines to the libc/posix1e directory. While the extattr calls are not strictly POSIX.1e, POSIX.1e wasn't strictly ever approved, so I think that's OK. Obtained from: TrustedBSD Project
* o Document 'nocheckmail' login capability.rwatson2001-11-161-0/+1
|
* Although the 'bool' type is referenced in the list of capabilities, itrwatson2001-11-161-0/+3
| | | | | | | is not defined in the capability type list. Provide a definition for 'bool', if a slightly less than elegant one. Note that this definition does not include the complete scope of available behavior defined in cgetcap(3), and could probably be improved.
* Fix the phrase about "both files", which must be leftyar2001-10-111-1/+3
| | | | | | | from login(3). This page, logwtmp(3), speaks of only one file -- wtmp(5). MFC after: 1 week
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-0119-44/+44
|
* Add __FBSDID()s to libutildillon2001-09-3020-52/+58
|
* 1) Back out ~/.login_conf disableache2001-09-252-8/+5
| | | | 2) Pick only "me" class from ~/.login_conf as documented
* Disable per-user .login_conf support due to incorrect merging of localrwatson2001-09-162-0/+5
| | | | | | 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 purposerwatson2001-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.
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-131-1/+0
|
* mdoc(7) police: protect trailing full stops of abbreviationsru2001-08-101-1/+1
| | | | with a trailing zero-width space: `e.g.\&'.
* Simplify IPv4 mapped IPv6 address handling.ume2001-07-231-66/+39
| | | | | Reviewed by: brian MFC after: 5 days
* remove emalloc,ecalloc,erealloc,estrdupassar2001-07-237-270/+1
|
* add ecalloc, emalloc, erealloc, estrdup - versions of the e-lessassar2001-07-227-2/+271
| | | | functions that exit instead of failing
* Hint getaddrinfo() correctly if we're looking up a name that we got frombrian2001-07-211-2/+9
| | | | | | an AF_INET6 address. MFC after: 1 week
* Remove whitespace at EOL.dd2001-07-1513-59/+59
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-108-8/+8
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-092-4/+0
|
* Fix the type of the NULL arg to execl()brian2001-07-091-3/+3
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Add RETURN VALUES and ERRORS sections.dd2001-06-251-2/+11
|
* Add a manual page for extattr_string_to_namespace anddd2001-06-242-0/+94
| | | | | | extattr_namespace_to_string. Reviewed by: rwatson
* Removed -I${.CURDIR}/.../sys from CFLAGS.ru2001-05-181-1/+1
|
* Sort.obrien2001-05-181-23/+24
|
* Add the "prompt" and "passwd_prompt" fields to /etc/login.conf,obrien2001-05-181-0/+4
| | | | | | which makes lgoin more like getty in its ability to be configured. Submitted by: tlambert (code only)
* Don't pass NULL to the %s format.dd2001-04-221-2/+6
| | | | Reviewed by: kris
* mdoc(7) police: normalize .Nd.ru2001-04-183-3/+3
|
* MAN[1-9] -> MAN.ru2001-03-271-2/+2
|
* o Slap some "_"'s in front of variable names relating to extattr functions,rwatson2001-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++rwatson2001-03-191-7/+7
| | | | | | | reserved word. Submitted by: jkh Obtained from: TrustedBSD Project
* o Rename "namespace" argument to "attrnamespace" as namespace is a C++rwatson2001-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
* Fix some further style nitsbrian2001-03-171-8/+11
| | | | Pointed out by: bde
* Actually commit the new version of trimdomain *blush*brian2001-03-151-70/+80
| | | | Thanks for covering my blunder to: peter
* o To support new EA interface with explicit namespaces, introduce tworwatson2001-03-153-3/+80
| | | | | | | | | | | 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
* It would help if trimdomain.c was actually committed. This is a stopgappeter2001-03-151-0/+105
| | | | | | world-unbreaker until Brian Somers commits the one he intended to. Pointy Hat to: brian
OpenPOWER on IntegriCloud