Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328986
b: refs/heads/master
c: c6f3d81
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent 7dff6db commit 814d087
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ddd3e0771bc7b869c550687c204e21f0155d5496
refs/heads/master: c6f3d81115989e274c42a852222b80d2e14ced6f
2 changes: 1 addition & 1 deletion trunk/fs/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ static inline int build_open_flags(int flags, umode_t mode, struct open_flags *o
op->mode = 0;

/* Must never be set by userspace */
flags &= ~FMODE_NONOTIFY;
flags &= ~FMODE_NONOTIFY & ~O_CLOEXEC;

/*
* O_SYNC is implemented as __O_SYNC|O_DSYNC. As many places only
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/proc/fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 814d087

Please sign in to comment.