]> git.proxmox.com Git - qemu.git/commit - linux-user/syscall.c
linux-user: fix openat
authorAlexander Graf <agraf@suse.de>
Sun, 25 Sep 2011 04:25:35 +0000 (06:25 +0200)
committerRiku Voipio <riku.voipio@linaro.org>
Thu, 27 Oct 2011 11:42:16 +0000 (14:42 +0300)
commitf4c690101c74afcc58deead71f6302fe343718b7
tree575f1629822f182b5dd62c1c7e3263c428c53776
parentcbb21eed186647716b9e8404a9e90d3fc5c6c467
linux-user: fix openat

When running openat using qemu-arm, we stumbled over invalid permissions
on the created files. The reason for this is that the mode parameter gets
treates as an O_... flag, which it isn't - it's a permission bitmask.

This patch removes the needless translation of the mode parameter,
rendering permission passing of openat() to work with linux-user.

Reported-by: Dirk Mueller <dmueller@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/syscall.c