mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
don't leak O_CLOEXEC into ->f_flags
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
ddd3e0771b
commit
c6f3d81115
2 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ static int seq_show(struct seq_file *m, void *v)
|
|||
if (file) {
|
||||
struct fdtable *fdt = files_fdtable(files);
|
||||
|
||||
f_flags = file->f_flags & ~O_CLOEXEC;
|
||||
f_flags = file->f_flags;
|
||||
if (close_on_exec(fd, fdt))
|
||||
f_flags |= O_CLOEXEC;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue