# | Line 279 | Line 279 | void populate_fs() { | |
---|---|---|
279 | die("out of memory"); | |
280 | ||
281 | name = buf; | |
282 | + | if (strlen(name) == 2 && name[1] == ':') |
283 | + | name[1] = '\0'; |
284 | if (strncmp(name, "/dev/", 5) == 0) | |
285 | name += 5; | |
286 | while ((p = strchr(name, '/')) != NULL) | |
# | Line 609 | Line 611 | int main(int argc, char **argv) { | |
611 | #ifdef ALLBSD | |
612 | if (setegid(getgid()) != 0) | |
613 | die("Failed to lose effective group"); | |
614 | + | #endif |
615 | + | #ifdef SOLARIS |
616 | + | if (seteuid(getuid()) != 0) |
617 | + | die("Failed to lose effective user"); |
618 | #endif | |
619 | ||
620 | switch (repeat_mode) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |