apatch/create: don't call cpfile on directories. Now fixed after rereading test(1). (How did I get that wrong?) I'm not sure how create:162 should be formatted. Notes: i hope i didn't overstep by doing this a different way -- changing the flags to find. Reference: /n/atom/patch/sorry/apatch-recursdir-again Date: Fri Feb 21 19:52:32 CET 2014 Signed-off-by: root@davidrhoskin.com Reviewed-by: quanstro --- /rc/bin/apatch/create Fri Feb 21 19:48:59 2014 +++ /rc/bin/apatch/create Fri Feb 21 19:49:01 2014 @@ -158,8 +158,8 @@ file=$uniqlist(1) base=$uniqlist(2) uniqlist = $uniqlist(3-) - test -e $SD/$file && cpfile $SD/$file $d/$base.orig - cpfile $file $d/$base || fail cpfile # we need to back out + test -f $SD/$file && cpfile $SD/$file $d/$base.orig + test -f $file && { cpfile $file $d/$base || fail cpfile } # we need to back out }