On 12/16/08, Dr. Werner Fink <[email protected]> wrote: > On Tue, Dec 16, 2008 at 01:35:48PM +0100, Dr. Werner Fink wrote: > [...] > > > > 1144 if(perm>0) > > > 1145 #if _lib_fchmod > > > 1146 > fchmod(fd,perm); > > > (gdb) > > > > > > > See attached patch which seems to be resolve the problem. > > > > Werner > > > Content-Description: ksh93t-io.dif > > --- src/cmd/ksh93/sh/io.c > > +++ src/cmd/ksh93/sh/io.c 2008-12-16 12:27:49.000000000 +0000 > > @@ -718,7 +718,16 @@ int sh_open(register const char *path, i > > } > > if (fd >= 0) > > { > > - int nfd = open(path,flags); > > + int nfd; > > + if (flags & O_CREAT) > > + { > > + struct stat st; > > + if (stat(path,&st) < 0) > > + return(-1); > > + nfd = open(path,flags,st.st_mode); > > + } > > + else > > + nfd= open(path,flags); > > if(nfd>=0) > > { > > fd = nfd; > > This mail seems to be missed ... does this mean that simple > attachments are not allowed on the ast-developers list?
The spam filter rejects attachment like GIF files. Plain diff should pass through. Irek _______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
