aboutsummaryrefslogtreecommitdiff
path: root/toys/toysh.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-05-12 00:52:27 -0500
committerRob Landley <rob@landley.net>2008-05-12 00:52:27 -0500
commit988abb33a5c9d8023a8e1bd5535a75a16e5d9e46 (patch)
treee79fe82472c84fe3e6675650e49770c8c0e23733 /toys/toysh.c
parente156d44eb2e9954d37ed0dfa326f263c3ed4c3d7 (diff)
downloadtoybox-988abb33a5c9d8023a8e1bd5535a75a16e5d9e46.tar.gz
Update mdev to work around the newest sysfs api breakage in the 2.6.25 kernel.
(Yeah, I know sysfs hasn't actually got an API, but I like to pretend...)
Diffstat (limited to 'toys/toysh.c')
-rw-r--r--toys/toysh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/toysh.c b/toys/toysh.c
index 17467fad..d1ef683f 100644
--- a/toys/toysh.c
+++ b/toys/toysh.c
@@ -349,7 +349,7 @@ static void handle(char *command)
void cd_main(void)
{
char *dest = *toys.optargs ? *toys.optargs : getenv("HOME");
- if (chdir(dest)) error_exit("chdir %s",dest);
+ xchdir(dest);
}
void exit_main(void)