From 997791acc672b0f69fed8953d310d538b86e0e33 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Sat, 15 Jun 2019 19:34:16 -0500 Subject: usr.bin/tee: make buildable --- usr.bin/tee/tee.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'usr.bin/tee') diff --git a/usr.bin/tee/tee.c b/usr.bin/tee/tee.c index f534e7e..64076ad 100644 --- a/usr.bin/tee/tee.c +++ b/usr.bin/tee/tee.c @@ -29,19 +29,6 @@ * SUCH DAMAGE. */ -#include -#ifndef lint -__COPYRIGHT("@(#) Copyright (c) 1988, 1993\ - The Regents of the University of California. All rights reserved."); -#endif /* not lint */ - -#ifndef lint -#if 0 -static char sccsid[] = "@(#)tee.c 8.1 (Berkeley) 6/6/93"; -#endif -__RCSID("$NetBSD: tee.c,v 1.12 2016/09/05 00:40:30 sevan Exp $"); -#endif - #include #include #include @@ -99,7 +86,7 @@ main(int argc, char *argv[]) for (exitval = 0; *argv; ++argv) if ((fd = open(*argv, append ? O_WRONLY|O_CREAT|O_APPEND : - O_WRONLY|O_CREAT|O_TRUNC, DEFFILEMODE)) < 0) { + O_WRONLY|O_CREAT|O_TRUNC, 0)) < 0) { warn("%s", *argv); exitval = 1; } else -- cgit v1.2.3-70-g09d2