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?
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers