From: Jim Meyering Date: Tue, 18 May 2004 15:28:27 +0000 (+0000) Subject: (names): Bring back lower-case letters, "_", and X-Git-Tag: v5.3.0~1526 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=40d4847f4c49c14ae8a748abf7446651e9c4ae80;p=thirdparty%2Fcoreutils.git (names): Bring back lower-case letters, "_", and ".". But continue to omit +, =, %, @, #, as they're either shell metacharacters (for some shells) or are not in some character sets, or (in the case of '%') must be a metacharacter somewhere. --- diff --git a/src/shred.c b/src/shred.c index 4d51a4b32b..1e438b6204 100644 --- a/src/shred.c +++ b/src/shred.c @@ -1348,8 +1348,9 @@ wipefd (int fd, char const *qname, struct isaac_state *s, /* --- Name-wiping code --- */ -/* Characters allowed in a file name - a safe universal set. */ -static char const nameset[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; +/* Characters allowed in a file name - a safe universal set. */ +static char const nameset[] = +"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_."; /* Increment NAME (with LEN bytes). NAME must be a big-endian base N number with the digits taken from nameset. Return true if