diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-06-15 19:34:16 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-06-15 19:34:16 -0500 |
commit | 997791acc672b0f69fed8953d310d538b86e0e33 (patch) | |
tree | ff24f05025c2737267a3361db2f592662af359a8 | |
parent | 53a42eece518ee9459c9c1718ad02e83417573e1 (diff) | |
download | userland-997791acc672b0f69fed8953d310d538b86e0e33.tar.gz userland-997791acc672b0f69fed8953d310d538b86e0e33.tar.bz2 userland-997791acc672b0f69fed8953d310d538b86e0e33.tar.xz userland-997791acc672b0f69fed8953d310d538b86e0e33.zip |
usr.bin/tee: make buildable
-rw-r--r-- | usr.bin/tee/tee.c | 15 |
1 files changed, 1 insertions, 14 deletions
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 <sys/cdefs.h> -#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 <sys/types.h> #include <sys/stat.h> #include <signal.h> @@ -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 |