summaryrefslogtreecommitdiff
path: root/udev.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-05-17 20:01:54 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-05-17 20:01:54 +0200
commit2f2c4fa442f33d7eaee02eda016d6149b9aa0be6 (patch)
treea40732c948ff2aba27d4cb0478917fddf92dd64a /udev.h
parentc2666405031cfda5720ddb9ecd88c1b476babc2a (diff)
replace_chars: replace spaces in node name
Diffstat (limited to 'udev.h')
-rw-r--r--udev.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/udev.h b/udev.h
index bb018ba195..454ea4280b 100644
--- a/udev.h
+++ b/udev.h
@@ -34,6 +34,10 @@
#define NAME_SIZE 256
#define VALUE_SIZE 128
+#define ALLOWED_CHARS "#+-.:=@_%"
+#define ALLOWED_CHARS_FILE ALLOWED_CHARS "/"
+#define ALLOWED_CHARS_INPUT ALLOWED_CHARS " $/?,"
+
#define DEFAULT_PARTITIONS_COUNT 15
#define UDEV_ALARM_TIMEOUT 180
@@ -149,7 +153,7 @@ extern void remove_trailing_chars(char *path, char c);
extern size_t path_encode(char *s, size_t len);
extern size_t path_decode(char *s);
extern int utf8_encoded_valid_unichar(const char *str);
-extern int replace_untrusted_chars(char *str);
+extern int replace_chars(char *str, const char *white);
/* udev_utils_file.c */
extern int create_path(const char *path);