]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Spaces in filenames suck hard.
authorRoy Marples <roy@marples.name>
Tue, 10 Feb 2015 08:50:39 +0000 (08:50 +0000)
committerRoy Marples <roy@marples.name>
Tue, 10 Feb 2015 08:50:39 +0000 (08:50 +0000)
dhcp-common.c

index 8b798e86fef7bee60699e04c86e4e815f849ceaf..7a14f3a7c55cb9d7eef96f07974f0b84b424c821 100644 (file)
@@ -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 == '\\') {