changeset 2944:466084782756 draft

Spaces in filenames suck hard.
author Roy Marples <roy@marples.name>
date Tue, 10 Feb 2015 08:50:39 +0000
parents 8fd60c6f6672
children 6960feec8c1d
files dhcp-common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dhcp-common.c	Mon Feb 09 17:32:34 2015 +0000
+++ b/dhcp-common.c	Tue Feb 10 08:50:39 2015 +0000
@@ -464,7 +464,7 @@
 		}
 		if ((type & (ESCSTRING | ESCFILE) &&
 		    (c == '\\' || !isascii(c) || !isprint(c))) ||
-		    (type & ESCFILE && (c == '/')))
+		    (type & ESCFILE && (c == '/' || c == ' ')))
 		{
 			errno = EINVAL;
 			if (c == '\\') {