summaryrefslogtreecommitdiffstats
path: root/lib/libutil
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Move trimdomain() into it's own source file and tidy things up a bit.brian2001-03-142-61/+5
| | | | | | Fix disorder in the Makefile. Reviewed (mostly) by: bde
* MAXHOSTNAMELEN includes space for the NULbrian2001-03-141-4/+4
| | | | | | | Don't read past the end of the host passed to realhostname() Not objected to by: freebsd-audit Interface disliked by: imp
* Updates for Blowfish password hashing.markm2001-03-111-1/+1
|
* In theory it would be perfectly legal for a system administrator tobillf2001-03-101-1/+1
| | | | | | | | # cd /dev && ./MAKEDEV pty0 pty3 and/or # rm -rf /dev/ptyp0 and expect all programs that use openpty() to still try to find available ptys.
* Fix typo: seperate -> separate.asmodai2001-02-061-2/+2
| | | | | | Seperate does not exist in the english language. Submitted to look at by: kris
* Fixed prototype of logout() (const poisoning).bde2001-02-061-1/+1
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-012-12/+12
|
* Call trimdomain properly for ip4 addresses.brian2001-01-281-30/+30
| | | | | PR: 24659 realhostname_sa() stuff submitted by: Jim.Pirzyk@disney.com
* Prepare for mdoc(7)NG.ru2001-01-161-1/+1
|
* In call to realloc, pass the number of bytes needed, not simply theghelmer2000-12-311-2/+2
| | | | | | | number of login time structures. Forward the name of the deny capability rather than hard-coding it in login_hostok.
* Prepare for mdoc(7)NG.ru2000-12-295-73/+70
|
* mdoc(7) police: Now that .Fx macro is parsed, backoutru2000-12-121-5/+2
| | | | the 1.18 -> 1.20 and fix the .Fx issue the right way.
* Fix a mangled $Id stringpeter2000-11-251-1/+1
|
* mdoc(7) police: Er macro usage cleanup.ru2000-11-221-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-202-2/+2
|
* Use Fx macro wherever possible.ru2000-11-141-2/+6
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-3/+3
|
* Eliminate inconsistency where a value that contains only whitespacemurray2000-11-091-1/+6
| | | | | | confuses the parser. Approved by: jkh
* Added PROPERTY_MAX_VALUE and PROPERTY_MAX_NAME defines to libutil.h somurray2000-11-083-9/+13
| | | | | | | 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 andgreen2000-10-273-8/+50
| | | | | | | | | | 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.
* Correct uu_lock_txfr. I don't think this ever worked correctly.brian2000-10-021-5/+6
|
* Document passwd_format further.green2000-09-301-0/+4
|
* Constify the arg to logout(3). It is const-safe.peter2000-09-042-3/+3
| | | | (cosmetic: drop some "register" qualifications too.)
* Move setproctitle() from libutil to libc (after a repo-copy)brian2000-09-024-252/+2
| | | | | | | | | 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().asmodai2000-08-231-0/+6
| | | | Approved by: green
* Stick login_setcryptfmt() in its own file to make pulling in ofgreen2000-08-233-17/+46
| | | | -lcrypt only happen if truly necessary.
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIgreen2000-08-224-2/+40
| | | | | | | | | | | | | | 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
* If the format string passed to setproctitle begins with a '-'ps2000-08-012-24/+14
| | | | | | | character, skip the program name when setting the process title. Ansified with extreme prejudice. Reviewed by: peter
* Sshd writes connected host into utmp directly. If the connection isume2000-07-141-7/+14
| | | | | | via IPv6, the hostname is trimed due to the length of IPv6 address. This change saves it as possible. I have a grudge against the shortage of UT_HOSTSIZE.
* Make sbsize a size instead of a number. This allows the usual suffixessheldonh2000-07-142-2/+2
| | | | | | | | | to be applied to the value given. This does not break installed /etc/login.conf files, since un-suffixed numbers are interpreted as they were before. PR: 19750 Submitted by: Paul Herman <pherman@frenchfries.net>
* Don't call warn() without a format string.kris2000-07-121-1/+1
|
* Better fix for .Fx macroache2000-07-061-2/+4
| | | | Submitted by: sheldonh
* Fix .Fx usage (causing error diagnositc)ache2000-07-061-1/+2
|
* document sbsize limit.alfred2000-06-021-0/+1
|
* We should see the ai_canonname menber of the first addrinfoume2000-05-241-6/+6
| | | | | | structure in the linked list. RFC2553 mentions only first. Reviewed by: shin
* Fix a memory leak with lc->lc_cap in login_close().hoek2000-05-211-0/+1
| | | | PR: bin/17084
* Fix miscellaneous mdoc macro argument limit infringements.sheldonh2000-05-091-1/+1
| | | | | PR: 18465 Reported by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
* Add xref to cap_mkdb(1).nik2000-04-301-0/+1
| | | | | PR: docs/17544 Submitted by: Christ J. Clark <cjc@cc942873-a.ewndsr1.nj.home.com>
* Introduce .Lb macro to libutil manpagesphantom2000-04-2219-127/+50
| | | | | | Sort .Nm values in some manpages Remove explicit note about compiling with -lutil, it's implicitly declared by .Lb macro now.
* Fix some spelling errors.mpp2000-03-241-6/+6
|
* Return IPv4 native address for IPv4 mapped IPv6 address, even ifume2000-03-231-8/+23
| | | | | | A RR is not found. Reviewed by: shin
* Since crypto/openssh/login.c was changed to use realhostname_sa(),ume2000-03-071-13/+29
| | | | | | | | | when connecting via IPv6, hostname was not recorded to utmp anymore. Because, if hostname is longer than buffer size, getnameinfo() returns with ENI_MEMORY. Reviewed by: shin Approved by: jkh
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-023-3/+6
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Update major version.shin2000-02-141-2/+2
| | | | | | | | | | Now libutil depends on libc.so.4, so needs to update the major version. Without this, old binaries which use libutil and build with libc.so.3 will coredump on recent 4.0. Solicited comment for cvs-committers and there seems to be no objection. Approved by: jkh
OpenPOWER on IntegriCloud