mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-03 01:17:45 +03:00
pam_systemd: add one more assert
This commit is contained in:
parent
8d46418e93
commit
dca81e2851
@ -393,6 +393,7 @@ static int update_environment(pam_handle_t *handle, const char *key, const char
|
||||
static bool validate_runtime_directory(pam_handle_t *handle, const char *path, uid_t uid) {
|
||||
struct stat st;
|
||||
|
||||
assert(handle);
|
||||
assert(path);
|
||||
|
||||
/* Just some extra paranoia: let's not set $XDG_RUNTIME_DIR if the directory we'd set it to isn't actually set
|
||||
|
Loading…
Reference in New Issue
Block a user