From 0d57e883e1fc6a0ca7bf435ddbe0b0f9b4380295 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 10 Aug 2011 20:26:51 +0100 Subject: Download archives with permissive umask (thanks David Konerding). https://www.redhat.com/archives/libguestfs/2011-August/msg00025.html --- febootstrap_debian.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'febootstrap_debian.ml') diff --git a/febootstrap_debian.ml b/febootstrap_debian.ml index f0d0be5..4aa7389 100644 --- a/febootstrap_debian.ml +++ b/febootstrap_debian.ml @@ -47,7 +47,7 @@ let debian_resolve_dependencies_and_download names = (* Download the packages. *) let cmd = - sprintf "cd %s && aptitude download %s" + sprintf "umask 0000; cd %s && aptitude download %s" (Filename.quote tmpdir) (String.concat " " (List.map Filename.quote pkgs)) in run_command cmd; @@ -85,7 +85,7 @@ let debian_list_files pkg = let pkgdir = tmpdir // pkg ^ ".d" in mkdir pkgdir 0o755; let cmd = - sprintf "dpkg-deb --fsys-tarfile %s | (cd %s && tar xf -)" + sprintf "umask 0000; dpkg-deb --fsys-tarfile %s | (cd %s && tar xf -)" (tmpdir // pkg) pkgdir in run_command cmd; -- cgit