again my first attempt to reproduce (albeit not as root) worked
maybe its an older version
what does this show
        chown --?-version

On Wed, 22 May 2013 23:58:35 +0200 Irek Szczesniak wrote:
> Taken from an Illumos OS bug:
> ==============================
> I discovered some surprising things lately.

> builtin chown in ksh fails when chown -h if the link target is
> missing. /usr/bin/chown is fine with it.

> garrett@openindiana:/tmp/usr/bin$ pfexec ksh
> garrett@openindiana:/tmp/usr/bin$ id
> uid=0(root) gid=0(root)
> garrett@openindiana:/tmp/usr/bin$ ls -la /tmp/file
> lrwxrwxrwx 1 garrett staff 11 May 20 08:34 /tmp/file -> /nosuchfile
> garrett@openindiana:/tmp/usr/bin$ cat /tmp/file
> cat: /tmp/file: cannot open [No such file or directory]
> garrett@openindiana:/tmp/usr/bin$ whence -v chown
> chown is a shell builtin version of /usr/bin/chown
> garrett@openindiana:/tmp/usr/bin$ chown -h root /tmp/file
> chown: /tmp/file: cannot change owner [No such file or directory]
> garrett@openindiana:/tmp/usr/bin$ /bin/chown -h root /tmp/file
> garrett@openindiana:/tmp/usr/bin$ ls -la /tmp/file
> lrwxrwxrwx 1 root staff 11 May 20 08:34 /tmp/file -> /nosuchfile
> ==============================

_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to