summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/file.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-01-16 05:46:44 +0000
committerderaadt <deraadt@openbsd.org>2015-01-16 05:46:44 +0000
commitbc7d9fd826c59d45b32bcd90ad61b422a9940b61 (patch)
tree6cc86d5c29b490125e142330861e1f92c6a0f1b6 /usr.bin/file/file.c
parentComplete the list of functions in the paragraph that mentions that (diff)
downloadwireguard-openbsd-bc7d9fd826c59d45b32bcd90ad61b422a9940b61.tar.xz
wireguard-openbsd-bc7d9fd826c59d45b32bcd90ad61b422a9940b61.zip
If MAXPATHLEN is undefined, do not set it to 512. Dangerous.
Diffstat (limited to 'usr.bin/file/file.c')
-rw-r--r--usr.bin/file/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/file/file.c b/usr.bin/file/file.c
index 22f315545f8..168583572a8 100644
--- a/usr.bin/file/file.c
+++ b/usr.bin/file/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.23 2011/04/15 16:05:34 stsp Exp $ */
+/* $OpenBSD: file.c,v 1.24 2015/01/16 05:46:44 deraadt Exp $ */
/*
* Copyright (c) Ian F. Darwin 1986-1995.
* Software written by Ian F. Darwin and others;
@@ -82,7 +82,7 @@ int getopt_long(int argc, char * const *argv, const char *optstring, const struc
" %s -C -m magicfiles\n"
#ifndef MAXPATHLEN
-#define MAXPATHLEN 512
+#define MAXPATHLEN 1024
#endif
private int /* Global command-line options */