diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-10-04 23:01:32 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-10-04 16:01:32 +0200 |
commit | 4c701096002fff540d9ddb3b21398c551ac3af78 (patch) | |
tree | 537e654dc92baa5eed5b6ff69867114384ecfa47 /src/basic/user-util.c | |
parent | 6d0aa4db7b33c9ce71b820c76428a1cfd24fb56f (diff) | |
download | systemd-4c701096002fff540d9ddb3b21398c551ac3af78.tar.gz |
tree-wide: use IN_SET macro (#6977)
Diffstat (limited to 'src/basic/user-util.c')
-rw-r--r-- | src/basic/user-util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/user-util.c b/src/basic/user-util.c index c619dad527..a691a0d3fc 100644 --- a/src/basic/user-util.c +++ b/src/basic/user-util.c @@ -543,8 +543,7 @@ bool valid_user_group_name(const char *u) { if (!(*i >= 'a' && *i <= 'z') && !(*i >= 'A' && *i <= 'Z') && !(*i >= '0' && *i <= '9') && - *i != '_' && - *i != '-') + !IN_SET(*i, '_', '-')) return false; } |