diff options
author | 2015-05-18 11:57:52 +0000 | |
---|---|---|
committer | 2015-05-18 11:57:52 +0000 | |
commit | 8dd812e1ff7686a1e30c43dbcf1f0ba85388519f (patch) | |
tree | a76cb1f41b85ed71e336fbd4526d74e323b058c9 /usr.bin/file/file.c | |
parent | Do not change "rcvif" without goint through if_input() again otherwise (diff) | |
download | wireguard-openbsd-8dd812e1ff7686a1e30c43dbcf1f0ba85388519f.tar.xz wireguard-openbsd-8dd812e1ff7686a1e30c43dbcf1f0ba85388519f.zip |
No longer need tricks with setvbuf(). Instead, we just give permission
to call fstat() and fcntl().
ok nicm
Diffstat (limited to 'usr.bin/file/file.c')
-rw-r--r-- | usr.bin/file/file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/file/file.c b/usr.bin/file/file.c index 0c2707d9d8e..c6b3af73ea8 100644 --- a/usr.bin/file/file.c +++ b/usr.bin/file/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.37 2015/04/28 02:26:43 lteo Exp $ */ +/* $OpenBSD: file.c,v 1.38 2015/05/18 11:57:52 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -186,7 +186,6 @@ main(int argc, char **argv) } if (magicfp == NULL) err(1, "%s", magicpath); - setvbuf(magicfp, NULL, _IOLBF, 0); /* stops stdio calling fstat */ parent = getpid(); if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, pair) != 0) |