Skip to content

Commit 0115934

Browse files
arndbebiederm
authored andcommitted
binfmt_elf_fdpic: fix execfd build regression
The change to bprm->have_execfd was incomplete, leading to a build failure: fs/binfmt_elf_fdpic.c: In function 'create_elf_fdpic_tables': fs/binfmt_elf_fdpic.c:591:27: error: 'BINPRM_FLAGS_EXECFD' undeclared Change the last user of BINPRM_FLAGS_EXECFD in a corresponding way. Reported-by: Valdis Klētnieks <[email protected]> Fixes: b8a61c9 ("exec: Generic execfd support") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]>
1 parent b081320 commit 0115934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/binfmt_elf_fdpic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ static int create_elf_fdpic_tables(struct linux_binprm *bprm,
588588
nitems = 1 + DLINFO_ITEMS + (k_platform ? 1 : 0) +
589589
(k_base_platform ? 1 : 0) + AT_VECTOR_SIZE_ARCH;
590590

591-
if (bprm->interp_flags & BINPRM_FLAGS_EXECFD)
591+
if (bprm->have_execfd)
592592
nitems++;
593593

594594
csp = sp;

0 commit comments

Comments
 (0)