only chmod at end. Reference: /n/sources/patch/applied/patch Date: Mon Oct 1 03:37:16 CES 2007 Signed-off-by: rsc@swtch.com --- /rc/bin/patch/create Mon Oct 1 03:37:02 2007 +++ /rc/bin/patch/create Mon Oct 1 03:37:02 2007 @@ -64,9 +64,8 @@ if not echo warning: new file $i not on sources >[1=2] echo $i $uniq >>$d/files - xchmod ug+rw $d/* - xchmod a+r $d/* } +@{cd $d && xchmod ug+rw * && xchmod a+r *} if(~ `{cat /proc/$pid/fd | awk 'NR==2{print $NF}'} */dev/cons && test -w /dev/consctl){ >/dev/consctl {