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