[ksh93-integration-discuss] Re: Small sticky-bit bug in "mkdir" builtin...
Glenn Fowler
gsf at research.att.com
Wed Apr 25 17:51:36 PDT 2007
posix documents (S_ISVTX|S_ISUID|S_ISGID) in mode for mkdir(path,mode)
as implementation defined, so to force those bits on some implementations
a separate chmod(path,mode) is required -- I added this for the next release
I'll post new beta packages friday
included will be some minor changes to support ast and non-ast b_find() builtins
the main part of that being sh_run() for b_find() -exec
On Wed, 25 Apr 2007 22:27:57 +0200 Roland Mainz wrote:
> Just found a small issue in libcmd's "mkdir" from ast-ksh.2007-04-18:
> It seems the sticky bit (e.g. "t") is not set when I set the mode to
> "1777":
> -- snip --
> $ umask
> 0022
> $ ~/ksh93/ast_ksh_20070418/build_32bit/arch/sol11.i386/bin/ksh -c 'mkdir
> -m 1777 foo_builtin'
> $ /bin/mkdir -m 1777 foo_external
> $ ls -lad foo*
> drwxrwxrwx 2 gisburn ksh93 512 Apr 25 22:22 foo_builtin
> drwxrwxrwt 2 gisburn ksh93 512 Apr 25 22:23 foo_external
> -- snip --
> Glenn: Can you reproduce the issue on your side ?
> ----
> Bye,
> Roland
> --
> __ . . __
> (o.\ \/ /.o) roland.mainz at nrubsig.org
> \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
> /O /==\ O\ TEL +49 641 7950090
> (;O/ \/ \O;)
More information about the ksh93-integration-discuss
mailing list