main.c revision 62b53ed9e64e40d2534f1239c4b314d84e79f15f
113bab2f09e9189c2b1e83ae37a1134108f9479clandley/* Toybox infrastructure. 213bab2f09e9189c2b1e83ae37a1134108f9479clandley * 313bab2f09e9189c2b1e83ae37a1134108f9479clandley * Copyright 2006 Rob Landley <rob@landley.net> 413bab2f09e9189c2b1e83ae37a1134108f9479clandley */ 513bab2f09e9189c2b1e83ae37a1134108f9479clandley 6c56215062c961402515daeef8330ed75cd94af29landley#include "toys.h" 7c56215062c961402515daeef8330ed75cd94af29landley 890afbad4c1f115d5363fe99eb797d2458cd298a0Rob Landley#ifndef TOYBOX_VERSION 9d2893d8173da0729af3c78661a8309bfce3e5ba5Rob Landley#define TOYBOX_VERSION "0.7.0" 1090afbad4c1f115d5363fe99eb797d2458cd298a0Rob Landley#endif 11ad602aa127e44eade76fbb05fd27ee8f5825282aRob Landley 12f2311a42a0751e7c039981857fcf60b40f36b475Rob Landley// Populate toy_list[]. 13c56215062c961402515daeef8330ed75cd94af29landley 14a6d696b74adb08d83b21f8299b5443f31a5f43ecRob Landley#undef NEWTOY 15a6d696b74adb08d83b21f8299b5443f31a5f43ecRob Landley#undef OLDTOY 16a6d696b74adb08d83b21f8299b5443f31a5f43ecRob Landley#define NEWTOY(name, opts, flags) {#name, name##_main, opts, flags}, 17f3e56f4e4ff773de95fa2c9daf979734d826fc33Rob Landley#define OLDTOY(name, oldname, flags) \ 18f3e56f4e4ff773de95fa2c9daf979734d826fc33Rob Landley {#name, oldname##_main, OPTSTR_##oldname, flags}, 19a6d696b74adb08d83b21f8299b5443f31a5f43ecRob Landley 20c56215062c961402515daeef8330ed75cd94af29landleystruct toy_list toy_list[] = { 2155928b1e0a08d84a5cbc50020f0a8c1024f5b6ceRob Landley#include "generated/newtoys.h" 22c56215062c961402515daeef8330ed75cd94af29landley}; 23c56215062c961402515daeef8330ed75cd94af29landley 24933919cd8094e870b3e7a554605fd49b20ddb1e0Rob Landley// global context for this command. 25c56215062c961402515daeef8330ed75cd94af29landley 26c56215062c961402515daeef8330ed75cd94af29landleystruct toy_context toys; 27b1aaba1fc8176ac0b7c202a664d2554aa0967116Rob Landleyunion global_union this; 288fdcfdb4479dff7a993a25a63253f0e749fd99feRob Landleychar toybuf[4096], libbuf[4096]; 29c56215062c961402515daeef8330ed75cd94af29landley 304f344e356d2c36c4b1df46917eaef25f82ca79a9landleystruct toy_list *toy_find(char *name) 3113bab2f09e9189c2b1e83ae37a1134108f9479clandley{ 327aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley int top, bottom, middle; 3313bab2f09e9189c2b1e83ae37a1134108f9479clandley 34dc1af185e73410c5cad997c600678c212262a13cRob Landley if (!CFG_TOYBOX) return 0; 35dc1af185e73410c5cad997c600678c212262a13cRob Landley 367aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley // If the name starts with "toybox" accept that as a match. Otherwise 377aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley // skip the first entry, which is out of order. 3813bab2f09e9189c2b1e83ae37a1134108f9479clandley 397aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley if (!strncmp(name,"toybox",6)) return toy_list; 407aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley bottom = 1; 4113bab2f09e9189c2b1e83ae37a1134108f9479clandley 42933919cd8094e870b3e7a554605fd49b20ddb1e0Rob Landley // Binary search to find this command. 4313bab2f09e9189c2b1e83ae37a1134108f9479clandley 447aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley top = ARRAY_LEN(toy_list)-1; 457aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley for (;;) { 467aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley int result; 472c226859cfc911c4a1eea009897050a16714aeecRob Landley 487aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley middle = (top+bottom)/2; 497aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley if (middle<bottom || middle>top) return NULL; 507aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley result = strcmp(name,toy_list[middle].name); 517aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley if (!result) return toy_list+middle; 527aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley if (result<0) top=--middle; 537aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley else bottom = ++middle; 547aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley } 5513bab2f09e9189c2b1e83ae37a1134108f9479clandley} 5613bab2f09e9189c2b1e83ae37a1134108f9479clandley 57fc2224b26c73198d00eba714caf47bd2e3a5e63bRob Landley// Figure out whether or not anything is using the option parsing logic, 58fc2224b26c73198d00eba714caf47bd2e3a5e63bRob Landley// because the compiler can't figure out whether or not to optimize it away 598f8c504e585b6850abf628cabdb9ef231bef1a35Rob Landley// on its' own. NEED_OPTIONS becomes a constant allowing if() to optimize 608f8c504e585b6850abf628cabdb9ef231bef1a35Rob Landley// stuff out via dead code elimination. 61fc2224b26c73198d00eba714caf47bd2e3a5e63bRob Landley 62fc2224b26c73198d00eba714caf47bd2e3a5e63bRob Landley#undef NEWTOY 63fc2224b26c73198d00eba714caf47bd2e3a5e63bRob Landley#undef OLDTOY 64fc2224b26c73198d00eba714caf47bd2e3a5e63bRob Landley#define NEWTOY(name, opts, flags) opts || 65f3e56f4e4ff773de95fa2c9daf979734d826fc33Rob Landley#define OLDTOY(name, oldname, flags) OPTSTR_##oldname || 664307a7b07cec4ad8cbab47a29ba941f8cb041812Rob Landleystatic const int NEED_OPTIONS = 6755928b1e0a08d84a5cbc50020f0a8c1024f5b6ceRob Landley#include "generated/newtoys.h" 68fc2224b26c73198d00eba714caf47bd2e3a5e63bRob Landley0; // Ends the opts || opts || opts... 69fc2224b26c73198d00eba714caf47bd2e3a5e63bRob Landley 703b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley// Setup toybox global state for this command. 71bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landleystatic void toy_singleinit(struct toy_list *which, char *argv[]) 72bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley{ 73bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley toys.which = which; 74bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley toys.argv = argv; 75bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley 769b14cb6b12e6f1b07a1ad401e5cb6e091df4ac2fRob Landley if (CFG_TOYBOX_I18N) setlocale(LC_ALL, "C"+!!(which->flags & TOYFLAG_LOCALE)); 77fc49761a9c992a120a27cca016d6a3ed31b1f3d3Rob Landley 78bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley if (CFG_TOYBOX_HELP_DASHDASH && argv[1] && !strcmp(argv[1], "--help")) { 79dc1af185e73410c5cad997c600678c212262a13cRob Landley if (CFG_TOYBOX && toys.which == toy_list && toys.argv[2]) 805f80533836c60a167f69b71624fad5c494057ee2Rob Landley if (!(toys.which = toy_find(toys.argv[2]))) return; 81e5354ca12a232b3f97726214254a868771cb70d1Rob Landley show_help(stdout); 82bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley xexit(); 83bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley } 84bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley 85bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley if (NEED_OPTIONS && which->options) get_optflags(); 86bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley else { 87bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley toys.optargs = argv+1; 883b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley for (toys.optc = 0; toys.optargs[toys.optc]; toys.optc++); 89bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley } 90bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley toys.old_umask = umask(0); 91bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley if (!(which->flags & TOYFLAG_UMASK)) umask(toys.old_umask); 921bc522424f6bb21842366ccd11953136436b684bRob Landley toys.signalfd--; 9390b200cac621ee925476297a2b70ddf3101cbb45Rob Landley toys.toycount = ARRAY_LEN(toy_list); 94bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley} 95bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley 963b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley// Full init needed by multiplexer or reentrant calls, calls singleinit at end 97cd9dfc3b7b73715840b63180e2e4bfdb6e7ca9a4landleyvoid toy_init(struct toy_list *which, char *argv[]) 98cd9dfc3b7b73715840b63180e2e4bfdb6e7ca9a4landley{ 99ca311f1a41a579a57076adfeb2cc08b20dbca21aRob Landley void *oldwhich = toys.which; 100ca311f1a41a579a57076adfeb2cc08b20dbca21aRob Landley 1017aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley // Drop permissions for non-suid commands. 102e0377fb294821a68112d4da09f836ac42e3d5956Rob Landley 1037aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley if (CFG_TOYBOX_SUID) { 104ca311f1a41a579a57076adfeb2cc08b20dbca21aRob Landley if (!toys.which) toys.which = toy_list; 105ca311f1a41a579a57076adfeb2cc08b20dbca21aRob Landley 1067aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley uid_t uid = getuid(), euid = geteuid(); 107e0377fb294821a68112d4da09f836ac42e3d5956Rob Landley 1087aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley if (!(which->flags & TOYFLAG_STAYROOT)) { 1095c87c1426b5c99dd1f2a3ac7493996c342efef4eRob Landley if (uid != euid) { 11062b53ed9e64e40d2534f1239c4b314d84e79f15fPatrick Ohly if (setuid(uid)) perror_exit("setuid %d->%d", euid, uid); // drop root 111ca311f1a41a579a57076adfeb2cc08b20dbca21aRob Landley euid = uid; 112ca311f1a41a579a57076adfeb2cc08b20dbca21aRob Landley toys.wasroot++; 1135c87c1426b5c99dd1f2a3ac7493996c342efef4eRob Landley } 114bf1e70f3554c2f591e15df7abca03138861e5c6cRob Landley } else if (CFG_TOYBOX_DEBUG && uid && which != toy_list) 115bf1e70f3554c2f591e15df7abca03138861e5c6cRob Landley error_msg("Not installed suid root"); 116e0377fb294821a68112d4da09f836ac42e3d5956Rob Landley 117e5354ca12a232b3f97726214254a868771cb70d1Rob Landley if ((which->flags & TOYFLAG_NEEDROOT) && euid) help_exit("Not root"); 1187aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley } 119e0377fb294821a68112d4da09f836ac42e3d5956Rob Landley 120caf39c26827f355c4e107f55c5c51f67c484bfd7Rob Landley // Free old toys contents (to be reentrant), but leave rebound if any 1213b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // don't blank old optargs if our new argc lives in the old optargs. 1223b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley if (argv<toys.optargs || argv>toys.optargs+toys.optc) free(toys.optargs); 123caf39c26827f355c4e107f55c5c51f67c484bfd7Rob Landley memset(&toys, 0, offsetof(struct toy_context, rebound)); 124ca311f1a41a579a57076adfeb2cc08b20dbca21aRob Landley if (oldwhich) memset(&this, 0, sizeof(this)); 125cd9dfc3b7b73715840b63180e2e4bfdb6e7ca9a4landley 1263b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // Continue to portion of init needed by standalone commands 127bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley toy_singleinit(which, argv); 128cd9dfc3b7b73715840b63180e2e4bfdb6e7ca9a4landley} 129cd9dfc3b7b73715840b63180e2e4bfdb6e7ca9a4landley 1308f8c504e585b6850abf628cabdb9ef231bef1a35Rob Landley// Like exec() but runs an internal toybox command instead of another file. 131c6705af4231b8071830721f98021d0e79223da12Rob Landley// Only returns if it can't run command internally, otherwise exit() when done. 1324f344e356d2c36c4b1df46917eaef25f82ca79a9landleyvoid toy_exec(char *argv[]) 13313bab2f09e9189c2b1e83ae37a1134108f9479clandley{ 1347aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley struct toy_list *which; 135b841cd2f8c1b378c1e8d73f5915662b8e79aac80Rob Landley 1363b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // Return if we can't find it (which includes no multiplexer case), 1373b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley if (!(which = toy_find(*argv))) return; 138c6705af4231b8071830721f98021d0e79223da12Rob Landley 1393b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // Return if stack depth getting noticeable (proxy for leaked heap, etc). 1403b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley if (toys.stacktop && labs((char *)toys.stacktop-(char *)&which)>6000) 1413b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley return; 1423b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley 1433b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // Return if we need to re-exec to acquire root via suid bit. 144ca311f1a41a579a57076adfeb2cc08b20dbca21aRob Landley if (toys.which && (which->flags&TOYFLAG_ROOTONLY) && toys.wasroot) return; 1457c5ed1cedaa881fff52da019da96f9bf6735dc5dRob Landley 146c6705af4231b8071830721f98021d0e79223da12Rob Landley // Run command 1477aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley toy_init(which, argv); 1485f80533836c60a167f69b71624fad5c494057ee2Rob Landley if (toys.which) toys.which->toy_main(); 149953722e3826c779f261a4c8a3649e36b1333a86fRob Landley xexit(); 1504f344e356d2c36c4b1df46917eaef25f82ca79a9landley} 15113bab2f09e9189c2b1e83ae37a1134108f9479clandley 1528f8c504e585b6850abf628cabdb9ef231bef1a35Rob Landley// Multiplexer command, first argument is command to run, rest are args to that. 1538f8c504e585b6850abf628cabdb9ef231bef1a35Rob Landley// If first argument starts with - output list of command install paths. 154efda21ca931766eed6cfc49d1b2122c53827d9fcRob Landleyvoid toybox_main(void) 1554f344e356d2c36c4b1df46917eaef25f82ca79a9landley{ 1567aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley static char *toy_paths[]={"usr/","bin/","sbin/",0}; 1577aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley int i, len = 0; 1587aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley 1593b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // fast path: try to exec immediately. 1603b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // (Leave toys.which null to disable suid return logic.) 1613b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley if (toys.argv[1]) toy_exec(toys.argv+1); 1623b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley 1633b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // For early error reporting 1646c62448f72ed9fc2b6a59ee09735283c07060cdbRob Landley toys.which = toy_list; 1653b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley 1667aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley if (toys.argv[1]) { 167e7acb4749dc655fee22d08f2723ea783f0d75fb6Rob Landley if (!strcmp("--version", toys.argv[1])) { 168e7acb4749dc655fee22d08f2723ea783f0d75fb6Rob Landley xputs(TOYBOX_VERSION); 169e7acb4749dc655fee22d08f2723ea783f0d75fb6Rob Landley xexit(); 170e7acb4749dc655fee22d08f2723ea783f0d75fb6Rob Landley } 17168986475982403b0dbc7c798d0a6e61c1a7be914Rob Landley if (toys.argv[1][0] != '-') { 17268986475982403b0dbc7c798d0a6e61c1a7be914Rob Landley toys.exitval = 127; 17368986475982403b0dbc7c798d0a6e61c1a7be914Rob Landley error_exit("Unknown command %s", toys.argv[1]); 17468986475982403b0dbc7c798d0a6e61c1a7be914Rob Landley } 1757aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley } 1767aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley 177933919cd8094e870b3e7a554605fd49b20ddb1e0Rob Landley // Output list of command. 178e7acb4749dc655fee22d08f2723ea783f0d75fb6Rob Landley for (i=1; i<ARRAY_LEN(toy_list); i++) { 1797aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley int fl = toy_list[i].flags; 1807aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley if (fl & TOYMASK_LOCATION) { 1817aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley if (toys.argv[1]) { 1827aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley int j; 1837aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley for (j=0; toy_paths[j]; j++) 1847aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley if (fl & (1<<j)) len += printf("%s", toy_paths[j]); 1857aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley } 186d3f335d2cf64eb6c556ee5ba6e4a9315766e3c6eRob Landley len += printf("%s",toy_list[i].name); 187d3f335d2cf64eb6c556ee5ba6e4a9315766e3c6eRob Landley if (++len > 65) len = 0; 188d3f335d2cf64eb6c556ee5ba6e4a9315766e3c6eRob Landley xputc(len ? ' ' : '\n'); 1897aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley } 1907aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley } 1917aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley xputc('\n'); 1924f344e356d2c36c4b1df46917eaef25f82ca79a9landley} 1934f344e356d2c36c4b1df46917eaef25f82ca79a9landley 1944f344e356d2c36c4b1df46917eaef25f82ca79a9landleyint main(int argc, char *argv[]) 1954f344e356d2c36c4b1df46917eaef25f82ca79a9landley{ 1963b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley if (!*argv) return 127; 197e7c09548b9c6188857260064c8ceba03d850c4b7Rob Landley 1983b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // Snapshot stack location so we can detect recursion depth later. 1993b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // This is its own block so probe doesn't permanently consume stack. 2003b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley else { 2013b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley int stack; 2023b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley 2033b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley toys.stacktop = &stack; 2043b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley } 2053b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley *argv = basename_r(*argv); 2063b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley 2073b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // If nommu can't fork, special reentry path. 2083b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley // Use !stacktop to signal "vfork happened", both before and after xexec() 2093b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley if (!CFG_TOYBOX_FORK) { 2103b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley if (0x80 & **argv) { 2113b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley **argv &= 0x7f; 2123b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley toys.stacktop = 0; 2133b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley } 2143b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley } 215bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley 2163b51a07e478d64a84e40b3a7c026b2f8566b194bRob Landley if (CFG_TOYBOX) { 217bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley // Call the multiplexer, adjusting this argv[] to be its' argv[1]. 218bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley // (It will adjust it back before calling toy_exec().) 219bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley toys.argv = argv-1; 220bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley toybox_main(); 221bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley } else { 222bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley // a single toybox command built standalone with no multiplexer 223bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley toy_singleinit(toy_list, argv); 224bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley toy_list->toy_main(); 225bb504f382dc6c596e6b2b9ce04931e7fbdd15bbeRob Landley } 2267aa651a6a4496d848f86de9b1e6b3a003256a01fRob Landley 227aad492fd87d689c443e87561c23abc2e12b785a9Rob Landley xexit(); 22813bab2f09e9189c2b1e83ae37a1134108f9479clandley} 229