Commit Graph

229 Commits

Author SHA1 Message Date
jdolecek 961e3a840f put utmpx/wtmpx routines to separate files, so that programs overriding the
utmp/wtmp routines could still be linked static
fixes e.g. static build of ftpd
2002-09-27 20:42:46 +00:00
wiz 4a47c952db Add documentation for utmpx and some related functions.
Thanks for some explanations to christos, and for some STANDARDS hints
to Klaus Klein.
2002-09-27 15:02:24 +00:00
wennmach ced9268418 s/_PASSWD_NOCHG/_PASSWORD_NOCHG/
s/_PASSWD_NOEXP/_PASSWORD_NOEXP/
2002-09-26 11:47:35 +00:00
christos d0a6aa04fc Add rcsid, config.h 2002-09-20 21:11:11 +00:00
christos 4ac3045a5a Add snprintb(3) inspired from bitmask_snprintf(9), but made to look like
more like snprintf(3). Discussed with thorpej.
2002-09-20 21:10:10 +00:00
christos d571f02f7d Don't bother calling secure_path() is kernel == _PATH_UNIX. If you are going
to default to it and use it anyway, why do the security check?
2002-09-12 14:42:15 +00:00
tron ef63cbff6b Bump minor number to 3 because there are already systems with
"libutil.so.6.2" to avoid further problems.
2002-08-23 10:34:02 +00:00
abs a086fb2909 Move humanize_number(3) from libutil to libc as per discussion on tech-misc
Revert minor number bump on libutil (with note to skip it next update), and
bump libc.
2002-08-22 17:24:08 +00:00
lukem ec5dbc56b8 Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the
Makefile (before including <bsd.own.mk>)
2002-08-19 14:55:14 +00:00
lukem ebb6fc9eb8 Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
(Reduces make output by ~ 20%)
2002-08-19 09:41:27 +00:00
itojun 2abe377059 defend against malicious line in ut_line, which could cause unwanted
writes to anything under /dev.  revoke setuid/gid privs earlier.
From: xs@kittenz.org
2002-08-16 20:21:48 +00:00
enami 38540fc05e Cosmetic changes. 2002-08-15 04:47:12 +00:00
gmcgarry 3e5aabbe90 Clarify what functionality _is_ included and _should be_ included in libutil. 2002-08-12 20:03:05 +00:00
martin ab77398ff9 Do not assume int64_t is printable with %qd - on 64 bit ports it isn't.
Use %lld instead and cast the args to (long long) explicitly.

I'm not sure about our policy vs. the C99 format string macros in
basesrc - should we use those here?
2002-08-12 09:06:59 +00:00
thorpej 214fe87eb9 Actually bump the shlib version to 6.2 as abs intended to. 2002-08-10 01:51:43 +00:00
wiz 91223bd061 Actually, the page was last modified today. 2002-08-08 17:04:32 +00:00
wiz 8afa8486fc Minor cleanup, correct HISTORY. 2002-08-08 17:03:46 +00:00
abs 35a808e4e8 Add humanize_number.3 from Tomas Svensson in PR lib/15508.
Bump version of libutil
2002-08-08 16:50:35 +00:00
wiz 4068c80842 Fix Fn argument. 2002-08-06 12:58:45 +00:00
christos 8720535dd6 add utmpx/wtmpx processing routines. 2002-07-27 23:49:23 +00:00
yamt 673cbedc13 import CAVEATS sections from OpenBSD.
with little tweak by me.
2002-07-10 14:37:12 +00:00
simonb 9a430fa482 Correct the list of pseudo-terminals in the FILES section. 2002-05-30 01:42:58 +00:00
wiz 5f7ebe2497 Grammar fix, and drop a .Pp after a section header. 2002-05-22 10:22:41 +00:00
itojun 0ee7a49136 if called multiple times with different names, only the last pid file
will be kept
2002-05-22 07:37:26 +00:00
itojun c2c2980f42 change return type of pidfile(3) to int (-1 on error), to inform caller
of errors.  behavior now in sync with openbsd implementation.
(see tech-userlevel and bsd-api-discuss)
2002-05-22 07:31:40 +00:00
ad 8cde67eba2 Back out previous - it will come as a surprise to many users. 2002-04-17 11:14:28 +00:00
perry 1e77807ee4 Per discussion on tech-security and tech-userlevel, upgrade default
passwd type to md5. Note that with the passwd.conf facility, one may
easily "downgrade" the default to type old if one wishes, and that
existing passwds continue to work as before -- this only changes the
default for new passwds.
2002-04-15 03:06:46 +00:00
atatat d76e3cd5fe Fix openpty() so that it correctly scans the entire list of possible
ttys.  The new ttys (g-zA-Z) are "optional", since they may not be
present, and their absence is not a "fatal" error.
2002-03-09 20:09:28 +00:00
wiz d8711c438f Drop trailing empty line. 2002-02-20 11:34:42 +00:00
wiz b6bb7c0546 Sort sections. 2002-02-20 11:34:14 +00:00
ross 814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
tls c6652502b9 Add support for up to 930 pty devices (instead of the current 256).
The openpty() routine has been modified to use the extra pty names
before the "traditional" names, so that programs too dumb to use
openpty() will, hopefully, find one of the "traditional" ptys free
even if many others are in use.  The modifications to MAKEDEV are
courtesy Andrew Brown, and are pretty clever: the unit numbers used
by the "traditional" names stay the same, to avoid trouble when
upgrading existing systems.  The unusual use of "dd" to index an
array in MAKEDEV is because no other simple method seemed feasible
using only the programs on the install media for all ports.
2002-02-02 05:48:30 +00:00
lukem 081753574a Add hooks for reachover builds from src/tools/compat. 2002-01-21 23:33:36 +00:00
lukem efcc9a4c9d * Add user-controlled mk.conf variables
- SHLIBDIR	Location to install shared libraries if ${USE_SHLIBDIR}
			is "yes".  Defaults to "/usr/lib".

	- USE_SHLIBDIR	If "yes", install shared libraries in ${SHLIBDIR}
			instead of ${LIBDIR}.  Defaults to "no".
			Sets ${_LIBSODIR} to the appropriate value.
			This may be set by individual Makefiles as well.

	- SHLINKDIR	Location of shared linker.  Defaults to "/usr/libexec".
			If != "/usr/libexec", change the dynamic-linker
			encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
	libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
	libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
  to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

  1.)	If nothing is set or changed, there is no change from the
	current behaviour:
		- Static /bin, /sbin, and bits of /usr/*
		- Dynamic rest
		- Shared linker is /usr/libexec/ld*so

  2.)	If the following make variables are set:
		LDSTATIC=
		SHLINKDIR=/lib
		SHLIBDIR=/lib
	Then the behaviour becomes:
		- Dynamic tools
		- .so libraries used by /bin and /sbin are installed to /lib,
		  with symlinks from /usr/lib/lib*so to -> /lib/lib*so
		  where appropriate
		- Shared linker is /lib/ld*so

  3.)	As per 2.), but add the following variable:
		USE_SHLIBDIR=yes
	This forces all .so's to be instaleld in /lib (with compat
	symlinks), not just those tagged by their Makefiles to be.
	Again, compat symlinks are installed
2001-12-28 01:32:37 +00:00
lukem 5463706383 remove referenced to raw (block) and cooked (character) devices, since
opendisk(3) doesn't care. the iscooked parameter just changes which
paths in /dev are tried if the supplied one doesn't work.
2001-12-10 22:50:33 +00:00
lukem f0061ca489 revert previous.
it appears that i misread the intent of the iscooked parameter when
originally designing this feature with jason, and changing it broke
some programs.
2001-12-10 22:41:52 +00:00
wiz 0d22a58265 Fix pasto in last. 2001-12-07 09:31:34 +00:00
gmcgarry daf40a326a Fix pastos. 2001-12-07 05:24:28 +00:00
wiz 52c3aaaffd Slight markup improvement. 2001-11-23 08:18:41 +00:00
gmcgarry f830776687 Add a catch-all man page for libutil. 2001-11-23 06:20:37 +00:00
lukem 9ee8b0ca6a WARNS=2 fix 2001-11-05 15:03:49 +00:00
lukem b3bf0bffe1 Enforce is iscooked arg;
if zero, a matching path must be of type S_IFCHR, and
	if non-zero, a matching path must be of type S_IFBLK.
2001-11-01 06:53:24 +00:00
lukem b2a1c14478 - add _PATH_USERMGMT_CONF. resolves [bin/14305]
- add _PATH_PASSWD_CONF to be consistent with almost all other _PATH_xxx_CONF
  defines, and change from using _PATH_PASSWDCONF to the former.  keep the
  latter for compatibility, although arguably it could be removed because
  it was never in a release and was only used in one file in the tree.
2001-10-23 00:25:20 +00:00
taca 2788a3f274 Remove an extra character in a comment block. 2001-10-20 09:20:28 +00:00
tron 2a957ed711 - Don't delete the pidfile if the process executing the cleanup handler
isn't the process who created it.
- If a new basename is supplied remove the an old pidfile if it was created
  by this process and create a new one as suggested by Jason Thorpe.
This fixes PR lib/13357 by Greg A. Woods.
2001-10-19 20:36:59 +00:00
lukem 64cb1ed825 path variations don't occur if there's a / in the path 2001-09-26 07:21:42 +00:00
wiz f19d54840a Rename secure_path(3) source file from securepath.c to secure_path.c. 2001-08-20 14:47:49 +00:00
wiz 149ced914e Improve formatting, noted by Simon Burge. 2001-08-20 14:26:45 +00:00
wiz 1e378c4c12 precede, not preceed. 2001-08-20 12:00:46 +00:00
ad cf24a0936c Bump libutil major for pw_mkdb() change. 2001-08-18 19:33:17 +00:00