History log of /openbsd/usr.bin/who/who.c (Results 1 – 25 of 33)
Revision Date Author Comments
# a750314d 11-Nov-2021 mestre <mestre@openbsd.org>

remove whitespace


# 7c00040f 11-Nov-2021 mestre <mestre@openbsd.org>

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 grou

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@

show more ...


# d723fb82 10-Nov-2021 schwarze <schwarze@openbsd.org>

remove a pointless call of setlocale(3);
patch from Jan Stary <hans at stare dot cz>;
OK martijn@


# bc5a8259 12-Jul-2021 beck <beck@openbsd.org>

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 A

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@

show more ...


# e01d8257 27-Aug-2020 semarie <semarie@openbsd.org>

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@


# 5f5adab9 08-Aug-2018 deraadt <deraadt@openbsd.org>

pledge with "unveil" at the top, so that the various modes can unveil
the files they inspect a little later.


# dc548fa2 21-Oct-2015 millert <millert@openbsd.org>

Style fixes; from Ilya Kaliman


# d0bcda8b 12-Oct-2015 naddy <naddy@openbsd.org>

ttyname() no longer does ioctl TIOCGETA, so pledge("tty") is no longer
needed here. ok deraadt@


# d8f7535e 11-Oct-2015 deraadt <deraadt@openbsd.org>

fix regression: ttyname() failure not handled right


# ec78cf01 10-Oct-2015 deraadt <deraadt@openbsd.org>

another pledge argument reorder for sake of re-audit


# 0bd1216c 09-Oct-2015 deraadt <deraadt@openbsd.org>

Change all tame callers to namechange to pledge(2).


# 17c42198 07-Oct-2015 semarie <semarie@openbsd.org>

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@


# a68287bb 07-Oct-2015 semarie <semarie@openbsd.org>

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 fla

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@

show more ...


# 82ff3630 22-Aug-2013 guenther <guenther@openbsd.org>

Correct format string mismatches turned up by -Wformat=2

suggestions and ok millert@


# a2b6cb4d 15-Nov-2010 otto <otto@openbsd.org>

show more of the host, but be careful not to go over 80 cols; ok krw@


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

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
(th

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

show more ...


# 4c3665e1 18-Aug-2004 jmc <jmc@openbsd.org>

- Xr w 1
- sort options and sync usage()


# 1837a5ca 10-Jun-2003 deraadt <deraadt@openbsd.org>

mostly ansi cleanup; pval ok


# f75387cb 03-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 8914c868 14-Apr-2003 deraadt <deraadt@openbsd.org>

strlcat, but i memset 0 before to be safe


# ebdabd47 07-Apr-2003 deraadt <deraadt@openbsd.org>

inlined strcpy, should be strncpy anyways; millert ok, from Hans-Joerg.Hoexer@yerbouti.franken.de


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

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 don

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.

show more ...


# c0932ef1 19-Nov-2001 mpech <mpech@openbsd.org>

kill more registers

millert@ ok


# c264c362 31-Jan-2001 deraadt <deraadt@openbsd.org>

move utmp to large format, usernames to 32 chars; downsj


# 2e229633 22-Mar-2000 millert <millert@openbsd.org>

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.


12