Update chmod.c

Plan9 approach