From 40d4847f4c49c14ae8a748abf7446651e9c4ae80 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 18 May 2004 15:28:27 +0000 Subject: (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. --- src/shred.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/shred.c b/src/shred.c index 4d51a4b32..1e438b620 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 -- cgit v1.2.3-54-g00ecf