#include "busybox.h"
#include <fcntl.h>
+#include <unistd.h>
+#include <string.h>
+#include <stdlib.h>
/*
* Some general definitions
if (err < 0)
perror_msg_and_die(progname);
else
- error_msg_and_die("Unexpected end of input file!\n");
+ error_msg_and_die("Unexpected end of input file!");
}
}
int rpmunpack_main(int argc, char **argv)
{
int len, status = 0;
- char buffer[BUFSIZ];
+ RESERVE_BB_BUFFER(buffer, BUFSIZ);
/* Get our own program name */
if ((progname = strrchr(argv[0], '/')) == NULL)
/* Check for command line parameters */
if (argc>=2 && *argv[1]=='-') {
- usage(rpmunpack_usage);
+ show_usage();
}
/* Open input file */