summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-05-04 10:19:55 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-05-04 10:19:55 +0000
commit1d7fc598cd56fe6c85b2a75ab7c3cead61fc23ad (patch)
tree2a46d3670fcc3f5016d8872f4dccacd9a8b41c12
parent2b126502f46893ca2cd356ae896d611fc19d2c0a (diff)
downloadsamba-1d7fc598cd56fe6c85b2a75ab7c3cead61fc23ad.tar.gz
samba-1d7fc598cd56fe6c85b2a75ab7c3cead61fc23ad.tar.xz
samba-1d7fc598cd56fe6c85b2a75ab7c3cead61fc23ad.zip
added issafe() define for "safe" characters
-rw-r--r--source/include/charset.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/include/charset.h b/source/include/charset.h
index 7091732223a..14b6ec2020f 100644
--- a/source/include/charset.h
+++ b/source/include/charset.h
@@ -57,5 +57,9 @@ extern void charset_initialise(void);
#define islower(c) (((char)(c)) != toupper(c))
#define isdoschar(c) (dos_char_map[(char)(c)] != 0)
#define isspace(c) ((c)==' ' || (c) == '\t')
+
+/* this is used to determine if a character is safe to use in
+ something that may be put on a command line */
+#define issafe(c) (isalnum(c) || strchr("-._",c))
#endif