Mercurial > hg > toybox
comparison 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 |
comparison
equal
deleted
inserted
replaced
291:620a2eab6b82 | 292:b4077be6c746 |
---|---|
347 } | 347 } |
348 | 348 |
349 void cd_main(void) | 349 void cd_main(void) |
350 { | 350 { |
351 char *dest = *toys.optargs ? *toys.optargs : getenv("HOME"); | 351 char *dest = *toys.optargs ? *toys.optargs : getenv("HOME"); |
352 if (chdir(dest)) error_exit("chdir %s",dest); | 352 xchdir(dest); |
353 } | 353 } |
354 | 354 |
355 void exit_main(void) | 355 void exit_main(void) |
356 { | 356 { |
357 exit(*toys.optargs ? atoi(*toys.optargs) : 0); | 357 exit(*toys.optargs ? atoi(*toys.optargs) : 0); |