]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: fix wrong inconsistency in extracting cwd and root associations
authorMasatake YAMATO <yamato@redhat.com>
Tue, 23 Jan 2024 20:24:09 +0000 (05:24 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Tue, 23 Jan 2024 20:24:09 +0000 (05:24 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd.c

index 51d7911144c3a4dd7e7135a616f1eb62b7c7be45..d41f45c8e08e98f5cce708d9ff52a6705553f608 100644 (file)
@@ -997,7 +997,7 @@ static void collect_execve_file(struct path_cxt *pc, struct proc *proc,
 static void collect_fs_files(struct path_cxt *pc, struct proc *proc,
                             bool sockets_only)
 {
-       enum association assocs[] = { ASSOC_EXE, ASSOC_CWD, ASSOC_ROOT };
+       enum association assocs[] = { ASSOC_CWD, ASSOC_ROOT };
        const char *names[] = {
                [ASSOC_CWD]  = "cwd",
                [ASSOC_ROOT] = "root",