brian
74c8c41cdf
Make setproctitle(NULL) restore all of the original arguments
...
(if it's able).
1999-11-17 21:12:17 +00:00
phk
9e8e07135f
Introduce commandline caching in the kernel.
...
This fixes some nasty procfs problems for SMP, makes ps(1) run much faster,
and makes ps(1) even less dependent on /proc which will aid chroot and
jails alike.
To disable this facility and revert to previous behaviour:
sysctl -w kern.ps_arg_cache_limit=0
For full details see the current@FreeBSD.org mail-archives.
1999-11-16 20:31:58 +00:00
jkoshy
2c048b0d9a
Link manual page for login_getpwclass(3) to login_cap(3).
...
PR: docs/14673
Submitted by: Andrew <andrew@ugh.net.au>
1999-11-04 08:33:18 +00:00
green
4899b61a6b
This implements the RLIMIT_SBSIZE ("sbsize") administrative limits for
...
userland. Currently, it can be enforced by login and csh. More
shells supporting sbsize are welcome.
1999-10-09 20:47:59 +00:00
phantom
0758474433
mdoc(7)'fy
...
Reviewed by: mpp
1999-09-21 19:39:27 +00:00
phantom
34985ba96d
Correct spelling : ascii -> ASCII
...
PR: docs/13702
Submitted by: Stephen J. Roznowski <sjr@home.com>
Reviewed by: mpp
1999-09-20 09:15:23 +00:00
peter
b6784c4210
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
peter
e226894fa0
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
peter
3b7c52fb9a
$Id$ -> $FreeBSD$
1999-08-27 23:15:48 +00:00
chris
24ff4e8603
Fix a bunch of broken cross-references
1999-08-18 05:55:22 +00:00
mpp
eed3878b2e
Various man page cleanup:
...
- Sort xrefs
- FreeBSD.ORG -> FreeBSD.org
- Be consistent with section names as outlines in mdoc(7)
- Other misc mdoc cleanup.
PR: doc/13144
Submitted by: Alexy M. Zelkin <phantom@cris.net>
1999-08-15 09:51:25 +00:00
chris
0ef3085422
Bad reference of termios(3) changed to termios(4).
1999-08-14 07:52:29 +00:00
chris
54eac00e8d
Bad reference to lstat(3) changed to lstat(2)
1999-08-14 07:43:02 +00:00
sheldonh
3433d56199
Axe LOGIN_CAP_AUTH.
...
PR: 10115
Reported by: Gene Skonicki <gene@cif.rochester.edu>
Requested by: jdp
1999-08-13 16:51:40 +00:00
nik
12c6c332a7
Correct some grammar and style problems with this page.
...
Submitted by: Kris Kennaway <root@rebel.net.au>
1999-07-20 20:46:26 +00:00
nik
d72e9660fb
Be a little clearer about login_getpwclass(3), and its penchant for
...
looking up a record called "root".
PR: docs/12377
Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
1999-07-14 22:36:10 +00:00
sheldonh
c7bb102692
Fix commented out CFLAGS addition for LOGIN_CAP_AUTH, which was missing
...
a make -D option.
PR: 12591
Submitted by: Craig Leres <leres@ee.lbl.gov>
1999-07-12 14:27:58 +00:00
pb
76f1b19c23
Move call to umask(0) back into pw_util(), because the latter
...
function is also used by chpass(1) and passwd(1).
1999-06-29 01:04:10 +00:00
pb
f79578648f
Force umask to 077 (instead of 000) during the edit phase, to get
...
secure permissions in case the user attempts to save something to
a file of his own.
Move umask stuff out of pw_init() into main() for better visibility
of overall umask tweaking logic.
PR: misc/11797
1999-06-26 12:15:39 +00:00
sheldonh
6a6011a9a8
Add -d option to vipw(8) to allow selection of an alternative directory
...
for the password files.
PR: 2703
Submitted by: jmg
1999-06-26 07:16:42 +00:00
jb
31bb8b56d3
Remove the static declaration from the line[] variable to allow
...
openpty() to be called from a threaded application.
1999-05-24 01:15:28 +00:00
jmz
163bdc4dd7
Chflags was clearing all flags supplied on the command line after a
...
clearing flag like dump or noschg, etc.
PR: bin/10071
Submitted by: Andreas Klussmann <andreas@infosys.heitec.net>
1999-05-21 17:04:13 +00:00
ache
c61d95a698
fix potential memory overwrite in escape parsing
...
PR: 11687
Submitted by: Don Lewis <Don.Lewis@tsc.tdk.com>
1999-05-13 16:16:46 +00:00
hoek
c58ef3f1c2
Change references from "passwordperiod" to "passwordtime", since
...
"passwordtime" is what passwd(1) has actually been using. I suspect
passwordperiod was the original intent. I can't figure-out which,
if either, BSDi uses. If anyone knows...
1999-04-30 18:19:46 +00:00
ache
f52d9e06ec
oops, add pwd!=NULL check to previous fix
1999-04-24 17:17:42 +00:00
ache
b0558c3afe
Switch to user UID/GID before checking/reading its ~/.login_conf
...
- some NFSes have root read access disabled
1999-04-24 17:01:58 +00:00
ache
c73dbb17e8
add MLINKS for two functions used from login_auth.c
...
comment out unused functions from login_auth.3
1999-04-24 16:30:30 +00:00
brian
07aac3540d
If given host.domain:nn[.nn], trimdomain() now reduces it to
...
host:nn[.nn] (if the domain is the same as the local one).
1999-04-09 01:54:10 +00:00
brian
e875e48ea9
bcopy -> memmove
...
Suggested by: archie
1999-04-08 08:00:06 +00:00
brian
ae4355856a
Tidy up trimdomain() and document it.
...
Don't truncate one byte short of the passed length.
1999-04-07 14:03:31 +00:00
brian
235e2fd6ec
Handle hostnames up to MAXHOSTNAMELEN-1 in length.
...
Use bcopy() instead of strcpy() to handle potentially
overlapping regions.
Un-obscure/complicate some code.
1999-04-07 08:27:04 +00:00
brian
694cb6221e
Put parenthesis around sizeof args.
...
Allow for host names up to MAXHOSTNAMELEN - 1 in length.
Prompted by: bde
1999-04-07 08:26:50 +00:00
brian
33d53a2f60
Add realhostname() - a function to correctly lookup
...
a name by address and ensure that the name resolves
back to the original address.
1999-04-06 23:02:35 +00:00
brian
ca64d9ce77
Get the pid right if a stale lock file exists.
...
PR: 10531
Submitted by: Lawrence D. Lopez <lopez@cisco.com>
1999-03-11 09:09:20 +00:00
bde
d25deb622d
Fixed bitrot in synopsis (some const poisoning had not reached here).
1999-03-05 17:08:23 +00:00
alex
52e14d9a01
Removed occurrences of consecutive repeated words (such as "the the").
1999-02-12 02:12:08 +00:00
bde
9046082ca0
Declare setproctitle() as printf0-like.
1998-12-16 17:52:15 +00:00
bde
50818432cb
Adjust for kern.ps_strings and PS_STRINGS not being a pointer. This is
...
an unimprovement here. I thought it would be an improvement, as in libkvm,
but here we can access the strings directly.
Use sysctlbyname() instead of sysctl() and trust it to give a nonzero
address if it succeeds.
1998-12-16 17:34:05 +00:00
dillon
8427b87a5c
oops. Fix indentation of the 'for' loop I just added.
1998-12-13 01:39:32 +00:00
dillon
9c6aa16142
Handle the race condition where vipw may lock a password file which has
...
just been replaced. After our lock succeeds we check if st_nlink is 0
and if it is we close the descriptor and retry our open/lock sequence.
1998-12-13 01:36:45 +00:00
jkh
24ee3c1135
Better document the file format, add in support for nested {}'s in multi-line
...
property values.
1998-11-22 13:20:09 +00:00
des
8ef896860e
Since vfork() was changed to fork(), we have to pass errno back from the
...
child to the parent somehow.
PR: 8353
Submitted by: Andrew J. Korty <ajk@purdue.edu>
1998-10-20 11:34:11 +00:00
jkh
239077d867
correct prototype.
1998-10-14 11:04:36 +00:00
des
d55d163bcc
Calls one or more of malloc(), warn(), err(), syslog(), execlp() or
...
execvp() in the child branch of a vfork(). Changed to use fork()
instead.
Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.
PR: Loosely related to bin/8252
Approved by: jkh and bde
1998-10-13 14:52:33 +00:00
jkh
e7ff8169c7
Now take stdio.h out of files that don't require it.
1998-10-09 11:24:20 +00:00
jkh
6ed47f8f93
Update docs to match interface change.
1998-10-09 07:33:58 +00:00
jkh
2486be61d7
o move path in libutil.h to paths.h
...
o make property_read() take a fd instead to avoid stdio.h mess
o update auth to new interface.
1998-10-09 07:32:38 +00:00
jkh
6f4401a7cb
Take the path spec back out.
1998-10-09 07:28:14 +00:00
jkh
f0d295b433
All these have to include stdio.h now.
1998-10-09 00:39:09 +00:00
jkh
6400200a8d
remove stdio.h include; I forgot Bruce's cardinal rule that header files
...
shouldn't include other ones (which, unfortunately, is also a hellish
rule since he broke interfaces like sysctl this way by requiring undocumented
header files to be included just in order to be able to use them now - SIGH!).
1998-10-08 23:10:41 +00:00