do not need oserrstr() when getcwd() fails (thanks EBo!) - vx32 - Local 9vx git repository for patches.
(HTM) git clone git://r-36.net/vx32
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 5f73d7fd87373512ce6156338e9879af2103d584
(DIR) parent 3376809c353f55c4578a09224c54197aaaf7788a
(HTM) 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:
M src/9vx/main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
(DIR) 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]);