mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Stop mentionning/testing the for the ASU bit (S flag).
It is of no use since suser() no longer set this bit. ok millert@, bluhm@
This commit is contained in:
parent
0225e935fe
commit
763163dc4e
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2017/06/11 19:43:16 bluhm Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2018/02/27 07:58:29 mpi Exp $
|
||||
|
||||
# Start with a clean /var/account/acct accounting file and turn on
|
||||
# process accounting with accton(8). Each test executes a command
|
||||
@ -34,14 +34,6 @@ run-regress-fork:
|
||||
./regress-fork -c '( : ) &'
|
||||
lastcomm regress-fork | grep -q ' -F '
|
||||
|
||||
TARGETS+= su
|
||||
run-regress-su:
|
||||
@echo '\n======== $@ ========'
|
||||
# Create shell program, run as super user, and check the -S flag.
|
||||
cp -f /bin/sh regress-su
|
||||
${SUDO} ./regress-su -c ':'
|
||||
lastcomm regress-su | grep -q ' -S '
|
||||
|
||||
TARGETS+= core
|
||||
run-regress-core:
|
||||
@echo '\n======== $@ ========'
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $OpenBSD: lastcomm.1,v 1.18 2017/06/08 17:14:02 bluhm Exp $
|
||||
.\" $OpenBSD: lastcomm.1,v 1.19 2018/02/27 07:58:29 mpi Exp $
|
||||
.\" $NetBSD: lastcomm.1,v 1.5 1995/10/22 01:43:41 ghudson Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1990, 1993
|
||||
@ -30,7 +30,7 @@
|
||||
.\"
|
||||
.\" @(#)lastcomm.1 8.1 (Berkeley) 6/6/93
|
||||
.\"
|
||||
.Dd $Mdocdate: June 8 2017 $
|
||||
.Dd $Mdocdate: February 27 2018 $
|
||||
.Dt LASTCOMM 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -99,9 +99,6 @@ Elapsed time of the process.
|
||||
.El
|
||||
.Pp
|
||||
The flags are encoded as follows:
|
||||
.Sq S
|
||||
indicates the command was
|
||||
executed by the superuser,
|
||||
.Sq F
|
||||
indicates the command ran after
|
||||
a fork, but without a following
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: lastcomm.c,v 1.26 2017/06/08 17:14:02 bluhm Exp $ */
|
||||
/* $OpenBSD: lastcomm.c,v 1.27 2018/02/27 07:58:29 mpi Exp $ */
|
||||
/* $NetBSD: lastcomm.c,v 1.9 1995/10/22 01:43:42 ghudson Exp $ */
|
||||
|
||||
/*
|
||||
@ -168,7 +168,6 @@ flagbits(int f)
|
||||
#define BIT(flag, ch) if (f & flag) *p++ = ch
|
||||
|
||||
p = flags + 1;
|
||||
BIT(ASU, 'S');
|
||||
BIT(AFORK, 'F');
|
||||
BIT(ACOMPAT, 'C');
|
||||
BIT(ACORE, 'D');
|
||||
|
Loading…
Reference in New Issue
Block a user