join-or-start hidepid fix

This commit is contained in:
smitsohu 2020-11-24 18:32:15 +01:00 committed by GitHub
parent fce35bbdef
commit 9eb9e8d4c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1497,7 +1497,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
if (checkcfg(CFG_JOIN) || getuid() == 0) {
// try to join by name only
pid_t pid;
if (!name2pid(ptr + 14, &pid)) {
if (!read_pid(ptr + 14, &pid)) {
if (!cfg.shell && !arg_shell_none)
cfg.shell = guess_shell();