Fix the pwd and group functions. The bb_ stuff was a leftover from
[oweals/busybox.git] / dpkg_deb.c
index 337e6e10dc786b9e8101d856eb792c676d04d75a..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 {
@@ -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);
 }