]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(names): Bring back lower-case letters, "_", and
authorJim Meyering <jim@meyering.net>
Tue, 18 May 2004 15:28:27 +0000 (15:28 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 18 May 2004 15:28:27 +0000 (15:28 +0000)
".".  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

index 4d51a4b32be600945ccb3ba50a21a9a6daf4286e..1e438b6204e98401593096eca28df465a3fa34a2 100644 (file)
@@ -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