summaryrefslogtreecommitdiff
path: root/usr.bin/false
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-11 19:05:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-11 19:05:29 +0000
commit4fe3a88760c88a72dc73d88e215abe7990a48e4d (patch)
tree8e21430ea930e1927df23e0cc29020e288f95e30 /usr.bin/false
parent5acba909cbec59ebe293c43103e4094009bd73f3 (diff)
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
Diffstat (limited to 'usr.bin/false')
-rw-r--r--usr.bin/false/Makefile7
-rw-r--r--usr.bin/false/false.c9
-rw-r--r--usr.bin/false/false.sh4
3 files changed, 11 insertions, 9 deletions
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 <bsd.prog.mk>
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