Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9a66179e
Commit
9a66179e
authored
Dec 24, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't pass mangled open_flag to finish_open()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a2c36b45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fs/namei.c
fs/namei.c
+4
-4
No files found.
fs/namei.c
View file @
9a66179e
...
...
@@ -1591,13 +1591,13 @@ static int open_will_truncate(int flag, struct inode *inode)
}
static
struct
file
*
finish_open
(
struct
nameidata
*
nd
,
int
open_flag
,
int
flag
,
int
acc_mode
)
int
open_flag
,
int
acc_mode
)
{
struct
file
*
filp
;
int
will_truncate
;
int
error
;
will_truncate
=
open_will_truncate
(
flag
,
nd
->
path
.
dentry
->
d_inode
);
will_truncate
=
open_will_truncate
(
open_
flag
,
nd
->
path
.
dentry
->
d_inode
);
if
(
will_truncate
)
{
error
=
mnt_want_write
(
nd
->
path
.
mnt
);
if
(
error
)
...
...
@@ -1733,7 +1733,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
error
=
-
EISDIR
;
if
(
S_ISDIR
(
path
->
dentry
->
d_inode
->
i_mode
))
goto
exit
;
filp
=
finish_open
(
nd
,
open_flag
,
flag
,
acc_mode
);
filp
=
finish_open
(
nd
,
open_flag
,
acc_mode
);
return
filp
;
exit_mutex_unlock:
...
...
@@ -1854,7 +1854,7 @@ struct file *do_filp_open(int dfd, const char *pathname,
return
filp
;
ok:
filp
=
finish_open
(
&
nd
,
open_flag
,
flag
,
acc_mode
);
filp
=
finish_open
(
&
nd
,
open_flag
,
acc_mode
);
if
(
nd
.
root
.
mnt
)
path_put
(
&
nd
.
root
);
return
filp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment