Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How about MODDIR being configure'able?



> No, we've been over this before; there's even a comment in utils.c to
> this effect:  zsh uses mktemp() in a safe way.  Specifically, the names
> created by gettempname() are always opened with O_CREAT later, so if
> they exist the open() call will fail.  Creating them with mkstemp(), on
> the other hand, causes problems with redirections and NO_CLOBBER.

Hmm.. shouldn't that be O_CREAT|O_EXCL, which we're not doing in
all cases?



Messages sorted by: Reverse Date, Date, Thread, Author