commit 5f73d7fd87373512ce6156338e9879af2103d584
parent 3376809c353f55c4578a09224c54197aaaf7788a
Author: yiyus <yiyu.jgl@gmail.com>
Date: Tue, 22 Jun 2010 10:02:02 +0200
do not need oserrstr() when getcwd() fails (thanks EBo!)
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/9vx/main.c b/src/9vx/main.c
@@ -461,10 +461,8 @@ findroot(void)
"/usr/local/9vx"
};
- if(getcwd(cwd, sizeof cwd) == nil){
- oserrstr();
+ if(getcwd(cwd, sizeof cwd) == nil)
panic("getcwd: %r");
- }
for(i=0; i<nelem(dir); i++){
snprint(buf, sizeof buf, "%s/386/bin/rc", dir[i]);