Fix the pwd and group functions. The bb_ stuff was a leftover from
[oweals/busybox.git] / dpkg_deb.c
index b20cc2695f66423851212062e488a28e2f0fdbb1..3a789379b439217d7be5b69e392d49db4ab7572d 100644 (file)
@@ -17,6 +17,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
+#include <unistd.h>
+#include <string.h>
+#include <stdlib.h>
 #include "busybox.h"
 
 typedef struct ar_headers_s {
@@ -40,7 +43,7 @@ extern int dpkg_deb_main(int argc, char **argv)
 {
        const int dpkg_deb_contents = 1;
        const int dpkg_deb_control = 2;
-       const int dpkg_deb_info = 4;
+//     const int dpkg_deb_info = 4;
        const int dpkg_deb_extract = 8;
        const int dpkg_deb_verbose_extract = 16;
        int opt=0;
@@ -155,5 +158,6 @@ extern int dpkg_deb_main(int argc, char **argv)
                }
        }
        status = readTarFile(srcFd, extract_flag, list_flag, extract_to_stdout, verbose_flag, NULL, extract_list);
+       close (srcFd);
        return(EXIT_SUCCESS);
 }