can you run truss and snarf out the chown()/lchown() lines from both the ast and native chown
On Wed, 22 May 2013 23:56:05 +0200 Irek Szczesniak wrote: > Taken from an Illumos OS bug: > ============================== > When I want to chown a file using numeric ids, which don't exist in > the passwd file, the builtin chown falls down badly. However, > /usr/bin/chown is fine with it. (So is xpg4/chown) > $ chown -h 433:434 /tmp/x > chown: /tmp/x: cannot change owner and group [Invalid argument] > $ ls -lad /tmp/x > lrwxrwxrwx 1 garrett staff 6 May 20 03:37 /tmp/x -> /tmp/g > $ /usr/bin/chown -h 433:434 /tmp/x > $ ls -lad /tmp/x > $ /usr/xpg4/bin/chown -h 433:437 /tmp/x > $ ls -lad /tmp/x > lrwxrwxrwx 1 433 437 6 May 20 03:37 /tmp/x -> /tmp/g > This busts using the builtin chown. This affects folks who want to use > these builtins to get a speed boost (no fork/exec), and are using it > to do image building (as I am), where the users don't exist in the > system files. > ============================== > Irek _______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
