diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-08-28 15:55:58 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-08-28 15:55:58 +0200 |
commit | 764ce7f2ab526c084f005186e0dcbabe59070247 (patch) | |
tree | 411a1246ee2a77271d2dab8a6480e5e7388694ac /udev_utils.h | |
parent | 5b13ecb830cdec338b514b9ed8c2c559c2f05223 (diff) |
start to enforce plain ascii or valid utf8
No device node or symlink can have other characters as plain
readable ascii or valid utf8. The /dev/disk/by-label/* symlinks
can no longer contain weird stuff read from untrusted sources.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_utils.h')
-rw-r--r-- | udev_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_utils.h b/udev_utils.h index a07d8d2b7c..ad415641d8 100644 --- a/udev_utils.h +++ b/udev_utils.h @@ -42,9 +42,9 @@ extern int add_matching_files(struct list_head *name_list, const char *dirname, /* udev_utils_string.c */ extern int strcmp_pattern(const char *p, const char *s); extern int string_is_true(const char *str); -extern void replace_untrusted_chars(char *string); extern void remove_trailing_char(char *path, char c); extern int utf8_encoded_valid_unichar(const char *str); +extern int replace_untrusted_chars(char *str); /* udev_utils_file.c */ extern int create_path(const char *path); |