12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #include "libbb.h"
- extern int pivot_root(const char *new_root, const char *put_old);
- int pivot_root_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
- int pivot_root_main(int argc, char **argv)
- {
- if (argc != 3)
- bb_show_usage();
-
- if (pivot_root(argv[1], argv[2]) < 0) {
-
- bb_perror_nomsg_and_die();
- }
- return EXIT_SUCCESS;
- }
|