From: mpi Date: Tue, 27 Feb 2018 07:58:29 +0000 (+0000) Subject: Stop mentionning/testing the for the ASU bit (S flag). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=763163dc4e9cc1285036a7fb236790c8490050e8;p=openbsd 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@ --- diff --git a/regress/usr.bin/lastcomm/Makefile b/regress/usr.bin/lastcomm/Makefile index 80446b0780c..6b214c98482 100644 --- a/regress/usr.bin/lastcomm/Makefile +++ b/regress/usr.bin/lastcomm/Makefile @@ -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======== $@ ========' diff --git a/usr.bin/lastcomm/lastcomm.1 b/usr.bin/lastcomm/lastcomm.1 index 0fca39005b7..cf2cc35b4f7 100644 --- a/usr.bin/lastcomm/lastcomm.1 +++ b/usr.bin/lastcomm/lastcomm.1 @@ -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 diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c index 5d12ad76a6e..f263fecd79e 100644 --- a/usr.bin/lastcomm/lastcomm.c +++ b/usr.bin/lastcomm/lastcomm.c @@ -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');