From bc7d9fd826c59d45b32bcd90ad61b422a9940b61 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 16 Jan 2015 05:46:44 +0000 Subject: [PATCH] If MAXPATHLEN is undefined, do not set it to 512. Dangerous. --- usr.bin/file/file.c | 4 ++-- 1 file 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 */ -- 2.20.1