Bug 000064

When Created: 03/01/1996 06:07:43
Against DJGPP version: 2.00
By whom:
Abstract: open("test",O_CREAT) sometimes creates a read-only file
If you call open without the third argument (permissions) it sometimes
creates a file which is read-only. This is because of a bug in
src\libc\posixcntl\open.c at line 38. It doesn't check if you use a third 
argument, instead it uses what happens to be on the stack.

Note added: 03/02/1996 14:42:32
By whom: (Morten Welinder)
A C-function cannot check how many arguments it was passed.  Therefore,
if a file may be created you must supply the mode parameter.

Closed on 06/13/1996 00:42:00: programmer error
By whom:

  webmaster     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010