From: Roy Marples Date: Tue, 10 Feb 2015 08:50:39 +0000 (+0000) Subject: Spaces in filenames suck hard. X-Git-Tag: v6.8.0~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfc7e5478607ea58c773234d9012c43de18c31f3;p=thirdparty%2Fdhcpcd.git Spaces in filenames suck hard. --- diff --git a/dhcp-common.c b/dhcp-common.c index 8b798e86..7a14f3a7 100644 --- a/dhcp-common.c +++ b/dhcp-common.c @@ -464,7 +464,7 @@ print_string(char *dst, size_t len, int type, const uint8_t *data, size_t dl) } if ((type & (ESCSTRING | ESCFILE) && (c == '\\' || !isascii(c) || !isprint(c))) || - (type & ESCFILE && (c == '/'))) + (type & ESCFILE && (c == '/' || c == ' '))) { errno = EINVAL; if (c == '\\') {