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
ad
7e44d4f92b
Add two arguments to pw_mkdb(), a la OpenBSD. This is to allow us to pass
...
the -u and -s options to pwd_mkdb.
2001-08-18 19:31:47 +00:00
mjl
d30f9aefd6
Fix typo
2001-08-15 21:34:06 +00:00
wiz
a9356936b4
seperate -> separate
2001-07-22 13:33:58 +00:00
lukem
4db962fc85
revert over-zealous pcvt cull; we still need to skip ttyv* whilst pccons uses
...
ttyv0 on some ports (currently; arm32, bebox, i386, prep). should fix PR 12862.
2001-05-10 01:57:47 +00:00
sommerfeld
22e6ab1ebe
Fix typo.
2001-04-12 22:34:31 +00:00
wiz
56d8eaccf3
Fix date, whitespace and punctuation.
2001-04-09 12:11:06 +00:00
jdolecek
2a2ea948de
Add a note this appeared in NetBSD 1.6. Pointed out on current-users@
...
by Geoff Wing.
2001-04-09 09:29:54 +00:00
wiz
b1593d9814
Add getbootfile(3) to libutil, and a man page.
...
Bump libutil version to 5.5.
2001-04-06 14:31:14 +00:00
cgd
65a1026492
convert to use getprogname()
2001-02-19 22:43:42 +00:00
lukem
d06a762ab2
sprinkle in _DIAGASSERT() as appropriate
2001-01-03 15:41:19 +00:00
cgd
3e7f7ef82d
__CONCAT does token pasting, not string concatnation. if something like:
...
__CONCAT("PATH=",_PATH_STDPATH);
actually works to concantate strings, it's because the preprocessor expands
it into "PATH=""whatever _PATH_STDPATH is" as separate strings, and then
ANSI string concatenation is performed on that. It's more straightforward
to just use ANSI string concatenation directly, and newer GCCs complain
(rightly) about mis-use of token pasting.
2000-12-19 23:09:02 +00:00
tron
9ef96a455e
Fix oversight in last commit.
2000-12-08 21:41:14 +00:00
tron
a3a468eeaf
Add two new passwd file update functions:
...
- The pw_setprefix() function defines the root directory used for passwd
file updates. If the prefix is set to /newroot pw_lock() will operate on
/newroot/etc/ptmp afterwards. The default prefix is an empty string.
- The pw_getprefix() function returns the root directory which is currently
used for passwd file updates.
2000-12-06 13:37:53 +00:00
lukem
279552d3db
fix up various .Nm abuses:
...
- keep the case consistent between the actual name and what's referenced.
e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
using `.Nm ""' if there's stuff following, or for the 2nd and so on
occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
itojun
4c0a48380a
/etc/login.conf is optional, so don't return NULL even if
...
there's none found. addresses part of PR 11150. sync with openbsd.
2000-10-12 00:28:33 +00:00
itojun
11ede04dd7
cosmetic; indentation
2000-10-12 00:19:57 +00:00
itojun
5e09a97a4e
login_cap.h requires sys/types.h (or should it pull sys/types.h in?)
2000-10-10 13:17:28 +00:00
itojun
982906430e
honor behavior of warn(NULL).
2000-10-04 08:40:49 +00:00
sommerfeld
d68f3adec6
Close possible format string attack.
2000-10-03 19:52:39 +00:00
ad
82759dbdf5
Use .{B,Bs,F,N,O}x and fix miscellaneous errors.
2000-09-21 10:43:49 +00:00
ad
88ec60f200
- Pull in <util.h> to get secure_path() declared.
...
- Resolve preprocessor symbol clash.
2000-09-21 10:15:32 +00:00
ad
300fe58019
Document secure_path() better; in particular, note that it will write
...
to the system log.
2000-09-19 15:03:20 +00:00
ad
8b2c913445
- Simplify code path.
...
- Make the first argument to secure_path() constant.
- KNF.
2000-09-18 16:36:33 +00:00
ad
da436beb73
Add a LIBRARY section.
2000-09-18 16:02:41 +00:00
ad
d6682c2a4f
PCVT hack is gone.
2000-07-11 12:10:51 +00:00
itohy
f9863c47b3
Correct ctype(3) usage.
...
Passing "char" value is wrong. Use "unsigned char" instead.
2000-07-11 06:07:25 +00:00
ad
056b0653ce
- More fixes.
...
- Document the built-in defaults.
2000-07-10 11:21:32 +00:00
ad
e8362050a9
`.Fn foo' -> `.Fn foo "void"' in SYNOPSIS.
2000-07-10 11:19:16 +00:00
ad
6d078c7044
Remove PCVT hack.
2000-07-10 11:16:38 +00:00
itojun
b596a9b104
rename securepath.3 into secure_path.3, as the function is named secure_path().
...
it is too hard to guess...
2000-07-07 11:05:06 +00:00
ad
44588903fc
Couple of nits.
2000-07-07 10:33:12 +00:00
ad
dbd0d28913
Fix typo. This probably would have stopped passwd(1) working if
...
/etc/passwd.conf didn't exist.
2000-07-07 10:32:48 +00:00
ad
2a9ac348ae
Oops - declare static functions.
2000-07-06 13:39:47 +00:00
ad
240f3596cb
Use ':' as group prefix; suggested by hubertf.
2000-07-06 13:09:46 +00:00
ad
8a82d4a86e
Bump libutil minor (pw_getconf()).
2000-07-06 11:26:23 +00:00
ad
7b3efebed5
Documentation for pw_getconf(). From OpenBSD.
2000-07-06 11:08:19 +00:00
ad
82be161e7c
- Add pw_getconf(). This is used to read configuration information from
...
passwd.conf. From OpenBSD.
- ANSIfy.
2000-07-06 11:06:12 +00:00
ad
fce98185a9
- __RCSID() police.
...
- ANSIfy.
- Miscellaneous style changes.
- Shutup lint(1) in one or two cases.
2000-07-05 11:46:40 +00:00
mjl
4d8aac4dbb
Correct typos which prevent man pages from being installed.
...
Fixes PR/10104 by Greg Woods.
2000-05-12 18:31:55 +00:00
mjl
323d451587
Added details about origin of code (BSD/OS) in history section.
...
Closes PR/9410 by Peter Seebach.
2000-03-08 00:02:54 +00:00
mjl
6be4d2a451
Mention the LOGIN_SETENV flag for setusercontext()
2000-02-13 01:10:19 +00:00
mjl
b562264ae1
Add a missing free() of a temporary buffer.
...
Add "unlimited" as synonym for "inf" and "infinity" for the
benefit of FreeBSD users.
Factor out the comparison w/ "infinity" in a isinfinite() function.
2000-02-10 20:52:54 +00:00
mjl
b3204d536b
Add login_getpwclass to libutil as convenience function for
...
programs originally for FreeBSD.
Add parsing of "setenv" parameter which can be used to set
up an initial environment on login.
2000-02-04 02:17:14 +00:00
mjl
633ab39a92
Make setusercontext() resilient against missing login.conf too.
2000-01-14 02:14:42 +00:00
mjl
923f186481
Make login_cap routines resilient to non-existant conf file, and
...
secure_path() less noisy.
2000-01-13 06:48:14 +00:00
mjl
33a82426ba
Add a history section.
2000-01-13 06:16:48 +00:00
mjl
142f369443
Add necessary support routines for login.conf.
2000-01-12 05:02:10 +00:00
mjl
183e61b9cf
Use /bin/sh to take care of the EDITOR command parsing instead of home
...
grown method. Fixes PR/8935 by myself. Fix is from OpenBSD. Also pull
in a couple of minor changes like checking the return value of vfork().
1999-12-03 16:23:58 +00:00
kristerw
1276709f38
Typos (from OpenBSD)
1999-11-19 23:29:45 +00:00
lukem
d896261208
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
...
_DIAGASSERT() is still retained.
1999-09-20 04:38:56 +00:00
lukem
e97b67a374
remove diagnostic check for name==NULL; it's ok to call pw_error() in this case
1999-09-17 01:28:12 +00:00
lukem
b48252f365
* use _DIAGASSERT() to check pointer arguments against NULL and file
...
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.
the first two items result in the addition of code similar to the
following in various functions:
_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
1999-09-16 11:44:54 +00:00
simonb
6bf3aa19f9
More trailing white space.
1999-07-02 15:46:05 +00:00
christos
8ee1fb1aaa
const poisoning.
1999-06-12 18:06:40 +00:00
thorpej
014350bb41
Use asprintf(3), as suggested by Simon Burge.
1999-06-06 17:31:09 +00:00
thorpej
fb695fdcb9
Add pidfile(3), which write a pid file in /var/run, and arranges for it
...
to be removed on normal exit.
1999-06-06 01:50:00 +00:00
garbled
38c96853cf
Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Wheee!
1999-03-22 19:44:33 +00:00
abs
edc1a24a56
Add a note to update src/distrib/sets/lists/base/shl.*, and add a missing
...
RCS Id.
1999-02-25 08:02:19 +00:00
kleink
df15a294f2
Dv vs. Va police.
1999-02-16 19:36:52 +00:00
bouyer
dc306354b0
Move the bswap functions from libutil to libc (this bups the
...
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
kleink
95478cea62
strtok() -> strtok_r() to avoid side-effects.
1999-01-11 23:31:50 +00:00
kleink
66208204f2
In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
...
of errno.
1999-01-11 23:20:35 +00:00
kleink
920280ae17
2 -> STDERR_FILENO
1999-01-11 23:10:26 +00:00
christos
983a6b1f22
Delint
1998-12-09 14:35:02 +00:00
kleink
0453a51caa
Kill __LIBUTIL_BUILD in favor of the newly added _LIBC indicator completely;
...
suggested by Jason Thorpe.
1998-10-14 21:13:04 +00:00
christos
4a47153ca9
Use posix signal system calls.
...
XXX: Library functions should not unblock signals like this!
1998-09-27 00:00:16 +00:00
christos
6f4f1ab0ad
Preserve the correct errno so that programs know the reason we failed.
1998-09-26 23:59:40 +00:00
tsarna
c89a574ffa
Execute ttyaction on termination of rlogind/telnetd sessions.
...
Also, say a little bit about ttyaction in the getty and login manpages.
1998-08-29 17:31:55 +00:00
lukem
ce83c69e00
first pass at fixing up capitalization of function names and
...
arguments; ensure that each is correct with respect to the
implementation, rather than being correct as per english.
1998-08-29 08:32:32 +00:00
thorpej
8d7b6b5dae
Add some braces to make egcs happy.
1998-08-19 00:52:18 +00:00
perry
a843f0f8a5
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-10 02:43:08 +00:00
mycroft
55ac0c2da3
const poisoning.
1998-07-26 21:58:46 +00:00
mrg
2beab49a06
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
...
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
thorpej
5b08d89dbe
Put pw_scan() back into libutil and pretent that libutil.so.5.0 never
...
existed.
1998-06-27 05:08:56 +00:00
lukem
c90cd29d64
actually, bump major for pw_scan() removal, even when it was moved to -lc
1998-06-09 06:42:50 +00:00
lukem
65c4c29d59
bump minor (because pw_scan() moved to libc, and old binaries that use libutil.so.4.4 and libc.so.12.26 won't work otherwise)
1998-06-08 14:33:05 +00:00
lukem
433c7b1d19
don't need trailing empty paragraph
1998-06-08 10:58:45 +00:00
lukem
32e5dd1f22
move pw_scan() out of here (into libc)
...
document _PASSWORD_NOWARN and _PASSWORD_OLDFMT inflags to pw_scan()
1998-06-08 03:12:45 +00:00
kleink
1550a56403
Delint last.
1998-05-09 20:59:29 +00:00
kleink
687ea7404c
Fix some arithmetics lossage on typeless pointers.
1998-05-08 16:55:15 +00:00
enami
64c778177c
Fix function return value and arguments in SYNOPSIS.
1998-05-05 00:43:16 +00:00
kleink
34c4557d93
Need <time.h> for time() prototype.
1998-03-30 15:22:29 +00:00
bouyer
50660fb787
Add bswap{16,32,64} functions to libutil. Because of this, bump minor.
1998-03-18 16:40:45 +00:00
perry
312aca536f
add LIBRARY section to man page
1998-02-05 18:45:17 +00:00
perry
b613a27fa7
unregisterify
1998-01-22 15:29:13 +00:00
perry
5e3388b0bf
merge with lite-2
1998-01-22 15:23:05 +00:00
perry
b51ed80fd5
RCS Id Police.
1998-01-09 04:11:49 +00:00
perry
93db5caa95
RCSID Police.
1998-01-05 07:41:06 +00:00
thorpej
fbb903995d
Change an exit() to _exit(), so that it's safe for vfork().
1997-12-31 05:47:15 +00:00
mikel
c75f102623
s/void/int/, from Ty Sarna in PR lib/4627
...
use .Xr when referring to login and getty instead of .Nm
1997-12-04 06:00:19 +00:00
lukem
40d4d52cce
* add extra arg to fparseln() - int flags - which is a bitmask.
...
current flags allow the `un-escaping' of escaped arguments (i.e,
don't prefix an escaped argument with the escape char)
* other minor cleanups
1997-12-01 02:58:40 +00:00
lukem
253f2b2928
* return on empty lines (with len = 0, and a pointer to an empty string),
...
rather than parsing until non-blank lines. some callers may want to
know when a blank line occurs. fix confirmed with christos.
* enhance test code (which is commented out by default) to use len and
lineno parameters
1997-11-24 13:05:38 +00:00
lukem
0e3b290810
fix .Nx usage (use 1.0 instead of 0.9a, etc), and other minor cleanups
1997-11-24 06:28:50 +00:00
lukem
191d34513d
better describe delim[], use ".Nx 1.3a" instead of "1.3A", other minor stuff
1997-11-23 04:07:32 +00:00
enami
6940412e60
Fix typo; update `buf' by return value from realloc(3).
1997-11-18 06:44:51 +00:00
christos
fd7ea84f27
Increase minor number for fparseln
1997-11-16 22:20:14 +00:00
christos
2d0fe6e822
tyop
1997-11-16 22:19:54 +00:00
christos
d0d7e22dc8
PR/4475: Jason R. Thorpe: there is no common function to parse a continued
...
line.
1997-11-16 22:15:54 +00:00
lukem
b10e61b102
use CPPFLAGS instead of CFLAGS, remove -Wall et al (WARNS=1 already does this)
1997-10-23 03:29:09 +00:00
mycroft
c967784829
Test file type correctly, using S_IS*().
1997-10-19 18:10:58 +00:00
cjs
8e29c9888e
* Add hostname to temporary file to avoid collisions when locking on
...
an NFS volume and competing with the same pid on another machine.
* Make locking on an NFS-moutned file work properly by checking link
count.
* Make sure correct errno is returned.
1997-10-12 09:58:23 +00:00
cjs
09ced7933a
Add pidlock, ttylock, ttyunlock functions.
1997-10-11 02:56:22 +00:00
lukem
5542a7ca43
- define WARNS?=1 in the top-level Makefile.inc, and don't define
...
anywhere else.
- for now, override WARNS=0 in librpcsvc and libwrap, until they're
cleaned up
- rcsid police
lib is now clean (except for librpcsvc and libwrap) on the i386, and
this should motivate the other ports to fix any other minor problems
that their compilers pick up that the i386 version doesn't.
1997-10-09 14:36:17 +00:00
lukem
ae6b9c674a
WARNSify
1997-10-09 11:58:15 +00:00
phil
c194103914
Back out my dumb change.
1997-09-30 17:13:50 +00:00
phil
83a44e0389
Add a prototype for opendisk so it will compile. (Should we have
...
a libutil.h for collecting all these prototypes?)
1997-09-30 16:53:12 +00:00
lukem
e6b7ef9676
reorder some checks so that buf is initialised as early as possible
...
(just after the check for buf != NULL)
1997-09-29 06:08:45 +00:00
lukem
1e372f6cf9
implement opendisk(3), as discussed with Jason Thorpe
1997-09-25 04:53:30 +00:00
kleink
66105c37fc
Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
...
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
jtc
23bee85a3f
Fix files using old TNF copyright notice
1997-07-31 00:01:15 +00:00
phil
01d72f4add
Change pw_copy to take an optional 4th parameter (old_pw), a pointer
...
to a passwd structure. If a good pointer, make sure old entry in file
is identical to passed passwd (old_pw). If not, abort.
Update documentation, bump major version due to change to pw_copy.
1997-07-24 08:50:31 +00:00
christos
3a693097b3
Remove accidental copy-right attribution.
1997-07-06 19:35:14 +00:00
christos
bb4dad4f04
PR/3832: Enami Tsugutomo: passwd.c will not compile on NetBSD/alpha
1997-07-06 18:17:21 +00:00
mikel
dea51c3ad3
s/ttyaction/ttymsg/g as noted by Dave Huang <khym@bga.com>
...
set argument of .Os to NetBSD 1.3
add xref to writev(2), for a better explanation of uio
misc. cleanup
1997-07-01 06:24:01 +00:00
mikel
adf5a16deb
indicate new location in error message
1997-07-01 06:10:53 +00:00
christos
023f063691
Add ttymsg.3 to the man pages.
1997-06-29 18:45:24 +00:00
christos
f5646a08d4
- RCSID police
...
- Add ttymsg.3
1997-06-29 18:44:03 +00:00
mikel
20690bcbac
include <fnmatch.h> for fnmatch() prototype
...
use __CONCAT() to generate pathenv
1997-06-20 06:42:20 +00:00
mikel
6aa3be2874
add parens for gcc -Wall
1997-06-20 06:17:27 +00:00
lukem
ad8e075042
in pw_scan(), parse [gu]id with strtoul() instead of atoi(), and sanity
...
check a) the parsed value was just a number, b) it doesn't exceed [GU]ID_MAX
1997-05-22 03:08:42 +00:00
mycroft
8feb354e12
Pull in err.h for prototypes.
1997-05-09 18:37:45 +00:00
mycroft
9ba4365fce
Allow the full range of UIDs and GIDs.
1997-04-23 18:51:17 +00:00
mrg
23768a9e9a
remove possibly dangerous sprintf and strcpy calls.
1997-02-11 08:42:03 +00:00
thorpej
3fe99e29ea
Deal with complex EDITOR strings (e.g. `pico -t'). Fixes PR #2520 .
1996-12-09 22:23:34 +00:00
gwr
603bda9c4e
Use _exit after exec failure (not exit).
1996-11-29 18:50:37 +00:00
gwr
d8201fb9f6
Use snprintf instead of sprintf.
1996-11-22 22:04:25 +00:00
gwr
3d5027bee4
Correct lengths used to build environment strings. (Fixes PR#2948)
1996-11-18 18:54:36 +00:00
lukem
01d3778298
fix spello of 'convenience'
1996-11-17 23:09:55 +00:00
fvdl
44fa942695
The FILES section named '/etc/ttyactions'; remove that 's'.
1996-11-16 20:50:12 +00:00
gwr
9d69345016
Allow the ttyname parameter of ttyaction() to be the full pathname of
...
the device, because that is what getty and login have handy. The
"/dev/" part is skipped before scanning the /etc/ttyaction file.
1996-11-14 19:16:01 +00:00
gwr
6ab34f5889
Add ttyaction.3 and ttyaction.c
1996-11-14 17:53:07 +00:00
gwr
5f5eeb9d41
Increment minor version for new function ttyaction().
1996-11-14 17:52:02 +00:00
mycroft
7cc5f9cd7a
Make openpty() work more than once.
1996-11-12 16:39:38 +00:00
lukem
0162911bb5
- fix retval of openpty()
...
- correct two .Fn references to forkpty()
- describe retval of forkpty(); it can return PID as well
- add xref to fork(2)
1996-11-03 14:27:54 +00:00
ghudson
23beafab63
Document that the caller must do a pw_abort() if pw_mkdb() fails.
1996-06-02 19:26:18 +00:00
ghudson
e257708bf2
Don't delete the lock file if pwd_mkdb fails. The caller will take care
...
of it by calling pw_abort() or pw_error() as appropriate.
1996-06-02 19:25:43 +00:00
thorpej
7795b4110f
Add two functions to libutil:
...
- getmaxpartitions: get the value of MAXPARTITIONS for the
currently running system
- getrawpartition: get the value of RAW_PART for the
currently running system
These functions are necessary since the value of MAXPARTITIONS might
be different across platforms which are binary compatible (e.g. amiga
and sun3).
1996-05-16 07:03:28 +00:00
jtc
e42a94845a
Minor reorganization of libutil, including the addition of passward
...
locking and editing functions.
From Greg Hudson <ghudson@MIT.EDU>
1996-05-15 21:42:23 +00:00
pk
8347998a01
Prototypes (PR#1100).
1995-06-05 19:43:53 +00:00
mycroft
4c34be6b52
Clean up deleted files.
1995-03-01 00:00:00 +00:00
jtc
a8bfd3d17a
Merged with 4.4lite
...
Changed to conform to NetBSD's new RCS Id conventions.
1994-11-17 07:17:53 +00:00
cgd
3a724adbf7
minor cleanup; kill unnecessary casts
1994-05-04 10:55:57 +00:00
andrew
fc3e00430e
Support up to 256 ptys.
1994-04-06 08:54:35 +00:00
cgd
f74f70059d
off_t
1994-04-01 03:06:40 +00:00
cgd
19601b5460
_double_ major number bump! joy!
1994-03-27 09:18:25 +00:00
mycroft
025a03852f
Clean up deleted files.
1994-01-27 23:31:23 +00:00
cgd
7999e08c50
get rid of stuff that doesn't belong here
1994-01-27 23:31:19 +00:00
cgd
b7a2e44720
kill force.
1994-01-25 21:03:26 +00:00
cgd
985686cfed
kill the 'prog' arg to getbsize(); it's unneeded. minor rev bump.
1994-01-25 20:06:03 +00:00
jtc
e304028c04
Fix off by one bug in pwcashe routine group_from_gid().
1994-01-19 21:15:46 +00:00
cgd
3a44018403
get rid of the awful RSS hack
1994-01-07 19:10:06 +00:00
pk
47b4886a7f
Return a well-known constant after becoming a daemon.
1993-12-19 08:44:42 +00:00
mycroft
cbe3d33b6d
P[GD]_SHIFT --> P[GD]SHIFT
1993-12-15 00:50:45 +00:00
cgd
f7c20a904e
look for m68k, rather than hp300 or amiga
1993-12-05 00:33:30 +00:00
cgd
daea3d2f86
add shlib_version file, with version 0.0
1993-11-08 03:48:53 +00:00
mycroft
ababab0671
Forgot to initialize `cp' in setsyserr().
1993-10-13 15:49:55 +00:00
mycroft
db3323c9ef
Remove code for old VM system. Don't use page tables in kvm_procread().
...
Change `#if DEBUG' to `#ifdef DEBUG'. Read some symbols from the kernel
only once.
1993-10-02 07:07:43 +00:00
mycroft
669b9e506a
Last change was almost correct, but we have to check that the pager actually
...
has the page. If not, we go up the shadow chain.
1993-08-16 07:27:06 +00:00
mycroft
9b8df6ad33
Fix an off-by-one error when scanning the vm map for a page. Also, if the
...
page is not in core, don't recurse into shadow objects if we've already found
a pager.
1993-08-15 13:57:51 +00:00
mycroft
cfafc9262a
Fix a bug in virtual to physical address translation on hp300s, and add support
...
for Amigas.
1993-08-15 01:54:29 +00:00
cgd
7fa14d416e
line 860: use CLSHIFT rather than PGSHIFT.
...
line 927: fix bogus indentation
also make sure first chars of buffers are null char, just in
case nothing rational is read...
1993-08-14 11:47:51 +00:00
cgd
b24744dc1d
implement kvm_procread for the hp300. now things mostly work on
...
the hp300, in terms of kvm. still minor strangeness re: sendmail...
1993-08-14 11:44:45 +00:00
mycroft
a617b72b1f
#include <machine/pte.h>, not <hp300/hp300/pte.h>. Also, make it at least
...
compile for non-i386 architectures, but exit with an error message (for now).
1993-08-14 02:20:27 +00:00
mycroft
9417ee8681
Add getbsize() from Berkeley, somewhat modified.
1993-08-06 17:03:54 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
dfb9caab49
Add RCS indentifiers.
1993-08-01 07:32:48 +00:00
mycroft
cda4f8f6ee
Add RCS identifiers.
1993-08-01 05:37:30 +00:00
mycroft
81c63e588b
Read swap in CLBYTES blocks.
1993-07-19 12:37:13 +00:00
mycroft
8ffedb1335
Don't need -I/sys any more.
1993-06-17 13:11:39 +00:00
deraadt
5c20ccab8b
kernel string read function takes much less time. could be optimized further,
...
by making block reads kernel page aligned. (cgd will make the next optimization
in this file)
1993-06-15 07:16:06 +00:00
cgd
566dd48a95
misc minor changes
1993-06-01 01:48:36 +00:00
cgd
5089c41368
update kvm.c for the new way of doing things:
...
(1) add support for new stack format/PS_STRINGS
(2) add support for kvm_getenv
the HP300 support in kvm_procread needs to be looked at/filled in,
from example code in kvm_getu, plus hacks
1993-06-01 01:35:01 +00:00
cgd
12279683e7
don't inlude select.h, but keep header cleanups
1993-05-20 11:53:04 +00:00
cgd
2c6296eff4
fix new select stuff
1993-05-20 10:30:31 +00:00
cgd
de5b7fe74a
fix problem where kvm_getprocs(), ..., kvm_freeprocs(), kvm_getprocs()
...
would get no processes.
1993-05-11 06:44:54 +00:00
mycroft
9222eca1f3
Fix memory leak.
1993-04-27 20:58:44 +00:00
cgd
ea0119db71
From: pk@cs.few.eur.nl (Paul Kranenburg)
...
patch which allows ps(1) and w(1) to lay
their hands on process command line arguments.
1993-04-10 15:02:41 +00:00
cgd
e541169ce2
after 0.2.2 "stable" patches applied
1993-03-21 18:04:42 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00