From 4fe3a88760c88a72dc73d88e215abe7990a48e4d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 11 Nov 2015 19:05:29 +0000 Subject: Switch back to C versions of true/false. I do not accept any of the arguments made 20 years ago. A small elf binary is smaller and faster than a large elf binary running a script. Noone cares about the file sizes on disk. ok semarie millert aja --- usr.bin/false/Makefile | 7 ++----- usr.bin/false/false.c | 9 +++++++++ usr.bin/false/false.sh | 4 ---- 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 usr.bin/false/false.c delete mode 100644 usr.bin/false/false.sh (limited to 'usr.bin/false') diff --git a/usr.bin/false/Makefile b/usr.bin/false/Makefile index 74ee728e795..d4cbe11f243 100644 --- a/usr.bin/false/Makefile +++ b/usr.bin/false/Makefile @@ -1,9 +1,6 @@ -# $OpenBSD: Makefile,v 1.4 1997/04/27 20:56:42 millert Exp $ +# $OpenBSD: Makefile,v 1.5 2015/11/11 19:05:28 deraadt Exp $ MAN= false.1 - -beforeinstall: - ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ - ${.CURDIR}/false.sh ${DESTDIR}${BINDIR}/false +PROG= false .include diff --git a/usr.bin/false/false.c b/usr.bin/false/false.c new file mode 100644 index 00000000000..240f4bd42dd --- /dev/null +++ b/usr.bin/false/false.c @@ -0,0 +1,9 @@ +/* $OpenBSD: false.c,v 1.1 2015/11/11 19:05:28 deraadt Exp $ */ + +/* Public domain - Theo de Raadt */ + +int +main(int argc, char *argv[]) +{ + return (1); +} diff --git a/usr.bin/false/false.sh b/usr.bin/false/false.sh deleted file mode 100644 index ddd775bdb8d..00000000000 --- a/usr.bin/false/false.sh +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/sh -# $OpenBSD: false.sh,v 1.2 1996/06/26 05:32:50 deraadt Exp $ - -exit 1 -- cgit v1.2.3