chiark / gitweb /
Verify validity of session name when received from outside
[elogind.git] / src / shared / env-util.c
index 6a52fb960d0e8df25791b66e6375263b8bc7c353..5e29629efdb6fce48c61fd59653261de4a4a76ce 100644 (file)
 #include "utf8.h"
 #include "util.h"
 #include "env-util.h"
+#include "def.h"
 
 #define VALID_CHARS_ENV_NAME                    \
-        "0123456789"                            \
-        "abcdefghijklmnopqrstuvwxyz"            \
-        "ABCDEFGHIJKLMNOPQRSTUVWXYZ"            \
+        DIGITS LETTERS                          \
         "_"
 
 #ifndef ARG_MAX