Permission at the time of file creation
der Mouse
mouse at thunder.mcrcim.mcgill.edu
Sun Jun 23 02:50:17 AEST 1991
In article <1991Jun21.201632.2407 at menudo.uh.edu>, rmdubash at hermes.cs.uh.edu writes:
> I am using SunOS4.1.1 and trying to open a file using the open system
> call with a mode value 777. Although my umask is 0, the file created
> has quite arbitrary permissions
Arbitrary? Are they by any chance r----x--x?
> Any clue as to what am I missing?
If the bits *are* r----x--x, you're forgetting that the mode is
generally written in octal, or else you're forgetting that octal isn't
the default base for numbers in C. Try giving the mode value as 0777
instead of 777 and see if it doesn't help.
der Mouse
old: mcgill-vision!mouse
new: mouse at larry.mcrcim.mcgill.edu
More information about the Comp.unix.questions
mailing list