It is of no use since suser() no longer set this bit.
ok millert@, bluhm@
-# $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
./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======== $@ ========'
-.\" $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
.\"
.\" @(#)lastcomm.1 8.1 (Berkeley) 6/6/93
.\"
-.Dd $Mdocdate: June 8 2017 $
+.Dd $Mdocdate: February 27 2018 $
.Dt LASTCOMM 1
.Os
.Sh NAME
.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
-/* $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 $ */
/*
#define BIT(flag, ch) if (f & flag) *p++ = ch
p = flags + 1;
- BIT(ASU, 'S');
BIT(AFORK, 'F');
BIT(ACOMPAT, 'C');
BIT(ACORE, 'D');