mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-25 12:44:58 +07:00
lookup: fix NUL termination of search path array
This commit is contained in:
parent
ddd8876392
commit
4bf2bbb6fb
@ -56,7 +56,8 @@ static char** user_dirs(void) {
|
|||||||
const char * const config_unit_paths[] = {
|
const char * const config_unit_paths[] = {
|
||||||
"/run/systemd/user",
|
"/run/systemd/user",
|
||||||
USER_CONFIG_UNIT_PATH,
|
USER_CONFIG_UNIT_PATH,
|
||||||
"/etc/systemd/user"
|
"/etc/systemd/user",
|
||||||
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
const char * const data_unit_paths[] = {
|
const char * const data_unit_paths[] = {
|
||||||
@ -64,7 +65,8 @@ static char** user_dirs(void) {
|
|||||||
"/usr/local/share/systemd/user",
|
"/usr/local/share/systemd/user",
|
||||||
USER_DATA_UNIT_PATH,
|
USER_DATA_UNIT_PATH,
|
||||||
"/usr/lib/systemd/user",
|
"/usr/lib/systemd/user",
|
||||||
"/usr/share/systemd/user"
|
"/usr/share/systemd/user",
|
||||||
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *home, *e;
|
const char *home, *e;
|
||||||
|
Loading…
Reference in New Issue
Block a user