Foldi Tamas wrote:
> 
> Hello hackers,
> 
>         I tried the following program on Tru64, FreeBSD and linux:
> 
> #include <stdio.h>
> #include <fcntl.h>
> #include <sys/stat.h>
> #include <sys/types.h>
> main() {
>         int fd;
>         fd = open ( "/tmp/foobar", (O_RDWR | O_CREAT),  0020);
>         perror("open");
>         close(fd);
> }
> 
> The program ran successfully, but the created file was different.
> On Linux:
>     -----w----    1 crow     crow            0 Jan 16 10:32 /tmp/foobar
> 
> On Tru64/FreeBSD:
>     ----------    1 crow     users           0 Jan 16 10:30 /tmp/foobar
> 
> I'm not sure what the result supposed to be. Any ideas ?

man 2 umask

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to