Re: open problem



Måns Rullgård wrote:

Ronald <followait@xxxxxxx> writes:

Does it make sense to create a file using ``open" without the mode
argument?

No. If you do, the open() function will take some random value from
the stack or a register and use it for the mode.

from the man page:
mode must be specified when O_CREAT is in the flags, and is ignored
otherwise.
Eric


.