Most scripts in /rc/bin/patch have "no such patch" type errors which bail early on if things aren't set up right in /n/sources/patch. patch/list had no such check, meaning if 'cd /n/sources/patch' fails, it'll happily try the current dirctory. This change causes it to notice the cd failed and exit more cleanly. The error was benign, but ugly. Reference: /n/sources/patch/applied/patch-list-cdfail Date: Mon Nov 26 06:21:47 CET 2007 Signed-off-by: anthony@strand1.com --- /rc/bin/patch/list Mon Nov 26 06:18:35 2007 +++ /rc/bin/patch/list Mon Nov 26 06:18:34 2007 @@ -7,7 +7,11 @@ } pref='' -cd /n/sources/patch +cd /n/sources/patch || { + echo 'can''t cd /n/sources/patch' >[2=1] + exit +} + if(~ $1 saved sorry applied undecided){ pref=$1^'/' shift