diff options
author | Rob Landley <rob@landley.net> | 2008-05-12 00:52:27 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2008-05-12 00:52:27 -0500 |
commit | 988abb33a5c9d8023a8e1bd5535a75a16e5d9e46 (patch) | |
tree | e79fe82472c84fe3e6675650e49770c8c0e23733 /lib/lib.c | |
parent | e156d44eb2e9954d37ed0dfa326f263c3ed4c3d7 (diff) | |
download | toybox-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 'lib/lib.c')
-rw-r--r-- | lib/lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -326,6 +326,11 @@ char *xabspath(char *path) return path; } +void xchdir(char *path) +{ + if (chdir(path)) error_exit("chdir '%s'"); +} + // Ensure entire path exists. // If mode != -1 set permissions on newly created dirs. // Requires that path string be writable (for temporary null terminators). |