mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
9pfuse: handle two more flags
This commit is contained in:
parent
7479a49b90
commit
281ca361d3
1 changed files with 8 additions and 1 deletions
|
@ -577,6 +577,13 @@ _fuseopen(FuseMsg *m, int isdir)
|
||||||
openmode = flags&3;
|
openmode = flags&3;
|
||||||
flags &= ~3;
|
flags &= ~3;
|
||||||
flags &= ~(O_DIRECTORY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC);
|
flags &= ~(O_DIRECTORY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC);
|
||||||
|
#ifdef O_NOFOLLOW
|
||||||
|
flags &= ~O_NOFOLLOW
|
||||||
|
#endif
|
||||||
|
#ifdef O_LARGEFILE
|
||||||
|
flags &= ~O_LARGEFILE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Discarding O_APPEND here is not completely wrong,
|
* Discarding O_APPEND here is not completely wrong,
|
||||||
* because the host kernel will rewrite the offsets
|
* because the host kernel will rewrite the offsets
|
||||||
|
@ -594,7 +601,7 @@ _fuseopen(FuseMsg *m, int isdir)
|
||||||
* O_NONBLOCK -> ONONBLOCK
|
* O_NONBLOCK -> ONONBLOCK
|
||||||
*/
|
*/
|
||||||
if(flags){
|
if(flags){
|
||||||
fprint(2, "unexpected open flags %#uo", (uint)in->flags);
|
fprint(2, "unexpected open flags %#uo\n", (uint)in->flags);
|
||||||
replyfuseerrno(m, EACCES);
|
replyfuseerrno(m, EACCES);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue