diff toys/toysh.c @ 292:b4077be6c746

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...)
author Rob Landley <rob@landley.net>
date Mon, 12 May 2008 00:52:27 -0500
parents 951110c37fee
children bc435ea49b2c
line wrap: on
line diff
--- a/toys/toysh.c	Sun May 04 19:44:39 2008 -0500
+++ b/toys/toysh.c	Mon May 12 00:52:27 2008 -0500
@@ -349,7 +349,7 @@
 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)