Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (16 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/util-linux/pivot_root.c

    r821 r1765  
    77 *     regardless of the kernel being used.
    88 *
    9  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
     9 * Licensed under GPL version 2, see file LICENSE in this tarball for details.
    1010 */
    11 #include <stdlib.h>
    12 #include <stdio.h>
    13 #include <errno.h>
    14 #include "busybox.h"
     11#include "libbb.h"
    1512
    1613extern int pivot_root(const char * new_root,const char * put_old);
    1714
     15int pivot_root_main(int argc, char **argv);
    1816int pivot_root_main(int argc, char **argv)
    1917{
    20     if (argc != 3)
    21     bb_show_usage();
     18    if (argc != 3)
     19        bb_show_usage();
    2220
    23     if (pivot_root(argv[1],argv[2]) < 0)
    24         bb_perror_msg_and_die("pivot_root");
     21    if (pivot_root(argv[1], argv[2]) < 0) {
     22        /* prints "pivot_root: <strerror text>" */
     23        bb_perror_nomsg_and_die();
     24    }
    2525
    26     return EXIT_SUCCESS;
    27 
     26    return EXIT_SUCCESS;
    2827}
Note: See TracChangeset for help on using the changeset viewer.