Commit 04d81be884925127e2ebee994e4a89ce44eab06e

Authored by bellard
1 parent 2d5262f9

open fix (Paul Brook)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1430 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
linux-user/arm-semi.c
... ... @@ -99,7 +99,7 @@ uint32_t do_arm_semihosting(CPUState *env)
99 99 else
100 100 return STDOUT_FILENO;
101 101 }
102   - return set_swi_errno(ts, open(s, open_modeflags[ARG(1)]));
  102 + return set_swi_errno(ts, open(s, open_modeflags[ARG(1)], 0644));
103 103 case SYS_CLOSE:
104 104 return set_swi_errno(ts, close(ARG(0)));
105 105 case SYS_WRITEC:
... ...