mestre
a750314d3b
remove whitespace
2021-11-11 08:48:48 +00:00
mestre
7c00040f35
There's no need to call pledge(2) so many times, or on many places, with the
...
same promises, just call it once before the switch case while at the same time
hoisting one unveil(2) so they are all grouped.
The call to pledge(2) on file() can also be simplified since "stdio rpath getpw"
will already be activated when we reach it.
OK deraadt@
2021-11-11 08:42:31 +00:00
schwarze
d723fb8208
remove a pointless call of setlocale(3);
...
patch from Jan Stary <hans at stare dot cz>;
OK martijn@
2021-11-10 15:06:24 +00:00
beck
bc5a8259a4
Change the error reporting pattern throughout the tree when unveil
...
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.
Work done and verified by Ashton Fagg <ashton@fagg.id.au>
ok deraadt@ semarie@ claudio@
2021-07-12 15:09:18 +00:00
semarie
e01d8257b3
unveil(_PATH_DEV, "r") when -T or -u is used: who(1) is using stat(2) for determining the status of the tty
...
ok deraadt@
2020-08-27 15:20:31 +00:00
deraadt
5f5adab9f1
pledge with "unveil" at the top, so that the various modes can unveil
...
the files they inspect a little later.
2018-08-08 22:55:14 +00:00
bentley
9e053c74bf
Mark up "am i" as Cm, not Ar.
...
While here, remove a leftover Tn macro.
ok jmc@
2017-06-19 06:05:33 +00:00
millert
dc548fa222
Style fixes; from Ilya Kaliman
2015-10-21 16:06:57 +00:00
naddy
d0bcda8bbf
ttyname() no longer does ioctl TIOCGETA, so pledge("tty") is no longer
...
needed here. ok deraadt@
2015-10-12 19:56:47 +00:00
deraadt
d8f7535e34
fix regression: ttyname() failure not handled right
2015-10-11 23:29:56 +00:00
deraadt
ec78cf010b
another pledge argument reorder for sake of re-audit
2015-10-10 22:06:41 +00:00
deraadt
0bd1216cbf
Change all tame callers to namechange to pledge(2).
2015-10-09 01:37:06 +00:00
semarie
17c4219847
from previous commit: "ioctl" is used for grab ttyname(0)
...
with a function's name like that "tty" should be a better request (more strict)
pointed by and ok deraadt@
2015-10-07 17:27:35 +00:00
semarie
a68287bbb1
enable tame(2) in who(1).
...
some refactor to grab ttyname(0) early and use it later.
gradually drop tame requests when no more needed.
"ioctl" is used for grab ttyname(0)
"rpath" is for -T and -u flag, that used stat(2) to get terminal status
initial patch from deraadt with help from guenther
ok deraadt@
2015-10-07 16:11:40 +00:00
jmc
05bc3d18f2
- make note of some xsi options
...
- even though "am i" is case insensitive, lowercase one example
for consistency
ok millert guenther
2014-06-04 06:06:33 +00:00
jmc
2360562a9e
update HISTORY: this command first appeared in V1 AT&T.
...
from Troels Vedel Klojgaard's submission to freebsd-doc (pr #184459 ):
The who command was among the first 60 UNIX commands, presented
in the first edition of "UNIX Programmer's Manual" (Bell Labs,
Murray Hill, New Jersey, November 3, 1971), as documented by Peter
H. Salus: A Quarter Century of UNIX. Reading, Massachusetts:
Addison-Wesley, 1995, page 41f.
verified/ok sobrado
2013-12-04 07:35:46 +00:00
guenther
82ff36301f
Correct format string mismatches turned up by -Wformat=2
...
suggestions and ok millert@
2013-08-22 04:43:40 +00:00
otto
a2b6cb4d0f
show more of the host, but be careful not to go over 80 cols; ok krw@
2010-11-15 10:57:49 +00:00
jmc
f1c64ac4de
add an EXIT STATUS section for /usr/bin;
2010-09-03 11:09:28 +00:00
jmc
f38c800bec
document exit values; from daniel dickman
2010-07-21 20:02:29 +00:00
deraadt
043fbe51c1
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
...
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
2009-10-27 23:59:19 +00:00
jmc
99332e389a
bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
...
updates to follow;
2009-02-08 17:15:08 +00:00
jmc
9490d37cb6
convert to new .Dd format;
2007-05-31 19:19:00 +00:00
jmc
7c5a075bb3
- use a consistent text for STANDARDS
...
- note which options are extensions to POSIX
2007-05-30 04:41:33 +00:00
jmc
4c3665e126
- Xr w 1
...
- sort options and sync usage()
2004-08-18 21:24:27 +00:00
jmc
c2bb2562ea
escape punctuation;
...
ok deraadt@
2003-09-02 18:50:06 +00:00
deraadt
1837a5ca50
mostly ansi cleanup; pval ok
2003-06-10 22:20:44 +00:00
millert
f75387cb26
Remove the advertising clause in the UCB license which Berkeley
...
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-03 02:56:05 +00:00
deraadt
8914c8687d
strlcat, but i memset 0 before to be safe
2003-04-14 03:13:07 +00:00
deraadt
ebdabd470c
inlined strcpy, should be strncpy anyways; millert ok, from Hans-Joerg.Hoexer@yerbouti.franken.de
2003-04-07 21:14:28 +00:00
millert
c72b5b24e1
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-16 21:27:05 +00:00
mickey
bf0f8e2c1a
fix the history refs
2002-01-24 20:33:45 +00:00
millert
fdf1776541
Sync SYNOPSIS w/ usage(); Brian Poole
2002-01-17 15:45:04 +00:00
mpech
c0932ef1ff
kill more registers
...
millert@ ok
2001-11-19 19:02:13 +00:00
deraadt
c264c362c6
move utmp to large format, usernames to 32 chars; downsj
2001-01-31 17:42:25 +00:00
aaron
f1ba34738e
Change all option list specifications to ".Bl -tag -width Ds". Most man
...
pages just needed their -width parameter tweaked to "Ds", which provides
a nice width of 6 constant characters. For consistency more than anything.
2000-11-09 17:51:53 +00:00
aaron
ea418ffe85
Another round of man page cleanup, this time to remove more hard sentence
...
breaks and getting rid of short lines, making these files easier to work with.
2000-10-18 05:12:06 +00:00
aaron
9e06ddee6d
Correct the HISTORY section to note that this command appeared in Version 5
...
of AT&T UNIX, not Version 6. Verified by strings(1)'ing a .dsk file (PDP-11
executable) containing the v5 sources, obtainable at gatekeeper.dec.com in the
directory /pub/DEC/sim/software. Idea from NetBSD PR/4790.
2000-03-24 21:41:08 +00:00
aaron
4aac73a429
More pedantic man page formatting insanity, lalala
2000-03-23 21:39:53 +00:00
millert
2e229633a5
Avoid the chdir entirely by prefixing _PATH_DEV to the tty name when
...
doing a stat. This makes the -T and -u flags work in confunction with
a file argument.
2000-03-22 17:07:37 +00:00
ericj
f7a771042b
only chdir() if needed. This affected having who reading different file
2000-03-21 21:54:51 +00:00
aaron
43b6428b7b
Finish off cleanup usr.bin/ man pages.
2000-03-14 14:58:24 +00:00
aaron
a3112c8a7c
Some section re-ordering.
2000-03-06 03:17:38 +00:00
aaron
4c2c4eb0f3
More consistent introduction to options.
1999-10-17 20:24:33 +00:00
deraadt
849b34c53a
indent
1999-07-18 01:22:16 +00:00
aaron
2e0eb34f9e
- remove trailing white space
...
- remove arguments from .Os macros
- remove arguments from .Nm macros, where appropriate
- some more Dq/Sq/Ql insanity
- still lots to do in the usr.bin tree... :/
1999-06-05 01:21:16 +00:00
aaron
bd2318b988
remove redundant .Pp macros
1998-11-11 23:01:42 +00:00
aaron
11e35e6df1
usr.bin/ man page fixes, t-z
1998-10-30 00:24:38 +00:00
deraadt
e189ddde44
$OpenBSD$
1997-09-21 11:34:32 +00:00
denny
2716968320
Add -q (quick), the only X/Open option I can work up enthusiasm to implement.
1997-08-20 05:37:21 +00:00