From 04d81be884925127e2ebee994e4a89ce44eab06e Mon Sep 17 00:00:00 2001 From: bellard Date: Fri, 13 May 2005 22:42:37 +0000 Subject: open fix (Paul Brook) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1430 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/arm-semi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/arm-semi.c b/linux-user/arm-semi.c index ea014f6bc7..6950daaa66 100644 --- a/linux-user/arm-semi.c +++ b/linux-user/arm-semi.c @@ -99,7 +99,7 @@ uint32_t do_arm_semihosting(CPUState *env) else return STDOUT_FILENO; } - return set_swi_errno(ts, open(s, open_modeflags[ARG(1)])); + return set_swi_errno(ts, open(s, open_modeflags[ARG(1)], 0644)); case SYS_CLOSE: return set_swi_errno(ts, close(ARG(0))); case SYS_WRITEC: -- cgit v1.2.3