mirror of
https://github.com/schoebel/mars
synced 2024-12-21 06:12:25 +00:00
aio: do not follow symlinks on O_CREAT
This commit is contained in:
parent
ee4258ccfc
commit
3883b2bf10
@ -1197,8 +1197,9 @@ static int aio_switch(struct aio_brick *brick)
|
||||
|
||||
mars_power_led_off((void*)brick, false);
|
||||
|
||||
flags |= O_LARGEFILE;
|
||||
if (brick->o_creat) {
|
||||
flags |= O_CREAT;
|
||||
flags |= (O_NOFOLLOW | O_CREAT);
|
||||
MARS_DBG("using O_CREAT on %s\n", path);
|
||||
}
|
||||
if (brick->o_direct) {
|
||||
|
Loading…
Reference in New Issue
Block a user