mirror of
https://github.com/systemd/systemd.git
synced 2025-08-31 09:49:54 +03:00
coredump: fix inode check
When checking if we look at the root directory we actually need to compare both st_dev *and* st_ino. The existing check only checked the latter. Fix that.
This commit is contained in:
@ -721,7 +721,7 @@ static int get_process_container_parent_cmdline(pid_t pid, char** cmdline) {
|
|||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
/* The process uses system root. */
|
/* The process uses system root. */
|
||||||
if (proc_root_stat.st_ino == root_stat.st_ino) {
|
if (stat_inode_same(&proc_root_stat, &root_stat)) {
|
||||||
*cmdline = NULL;
|
*cmdline = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user