X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.h;h=fb852d697363300b9911817d737268b460e8caf4;hb=45035609fcfc3fe09324988c4929a3c147171c23;hp=8544940eabdb17743d0aafa23421798065854350;hpb=6294aa76d818e831de4592b41a37e225fd0871f9;p=elogind.git diff --git a/src/shared/util.h b/src/shared/util.h index 8544940ea..fb852d697 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -505,7 +505,7 @@ bool tty_is_console(const char *tty) _pure_; int vtnr_from_tty(const char *tty); const char *default_term_for_tty(const char *tty); -void execute_directory(const char *directory, DIR *_d, usec_t timeout, char *argv[]); +void execute_directory(const char *directory, DIR *_d, usec_t timeout, char *argv[], char *env[]); int kill_and_sigcont(pid_t pid, int sig); @@ -964,3 +964,5 @@ char *tempfn_xxxxxx(const char *p); char *tempfn_random(const char *p); bool is_localhost(const char *hostname); + +int take_password_lock(const char *root);