#include <stdio.h>
#include <string.h>
#include <sqlite3.h>
-#include "ccan/string/string.h"
+#include "ccan/grab_file/grab_file.h"
+#include "ccan/str_talloc/str_talloc.h"
#include "ccan/talloc/talloc.h"
#include "tools/_infotojson/database.h"
if (!p)
err(1, "Executing '%s'", cmd);
- buffer = grab_fd(NULL, fileno(p));
+ buffer = grab_fd(NULL, fileno(p), NULL);
if (!buffer)
err(1, "Reading from '%s'", cmd);
pclose(p);
printf("creating tar ball of \"%s\"\n", argv[1]);
/* creating tar of the module dependencies */
- deps = get_deps(talloc_autofree_context(), argv[1]);
+ deps = get_deps(talloc_autofree_context(), argv[1], true);
if (deps != NULL)
create_tar(deps, argv[1], argv[2]);
talloc_free(deps);
if (dependents != NULL)
for (i = 0; dependents[i]; i++) {
printf("creating tar ball of \"%s\"\n", dependents[i]);
- deps = get_deps(NULL, dependents[i]);
+ deps = get_deps(NULL, dependents[i], true);
if (deps != NULL)
create_tar(deps, dependents[i], argv[2]);
talloc_free(deps);