diff options
author | Jim Meyering <jim@meyering.net> | 2004-05-18 15:28:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-05-18 15:28:27 +0000 |
commit | 40d4847f4c49c14ae8a748abf7446651e9c4ae80 (patch) | |
tree | b65400c87a8ee37f2b294a3a925d1849e52feaff /src | |
parent | 9057c23a8bb18d568e1cfba3cc108a87fcb3ac55 (diff) | |
download | coreutils-40d4847f4c49c14ae8a748abf7446651e9c4ae80.tar.xz |
(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.
Diffstat (limited to 'src')
-rw-r--r-- | src/shred.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 |