artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4537d54
)
If MAXPATHLEN is undefined, do not set it to 512. Dangerous.
author
deraadt
<deraadt@openbsd.org>
Fri, 16 Jan 2015 05:46:44 +0000
(
05:46
+0000)
committer
deraadt
<deraadt@openbsd.org>
Fri, 16 Jan 2015 05:46:44 +0000
(
05:46
+0000)
usr.bin/file/file.c
patch
|
blob
|
history
diff --git
a/usr.bin/file/file.c
b/usr.bin/file/file.c
index
22f3155
..
1685835
100644
(file)
--- a/
usr.bin/file/file.c
+++ b/
usr.bin/file/file.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: file.c,v 1.2
3 2011/04/15 16:05:34 stsp
Exp $ */
+/* $OpenBSD: file.c,v 1.2
4 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 */