mirror of
https://github.com/systemd/systemd.git
synced 2025-02-21 05:57:34 +03:00
device-nodes: rename argument
This commit is contained in:
parent
1dec1c6163
commit
8352a29b6d
@ -8,12 +8,12 @@
|
||||
#include "string-util.h"
|
||||
#include "utf8.h"
|
||||
|
||||
int allow_listed_char_for_devnode(char c, const char *white) {
|
||||
int allow_listed_char_for_devnode(char c, const char *additional) {
|
||||
return
|
||||
ascii_isdigit(c) ||
|
||||
ascii_isalpha(c) ||
|
||||
strchr("#+-.:=@_", c) ||
|
||||
(white && strchr(white, c));
|
||||
(additional && strchr(additional, c));
|
||||
}
|
||||
|
||||
int encode_devnode_name(const char *str, char *str_enc, size_t len) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user