]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - scripts/package/builddeb
kbuild, deb-pkg: Fix build with paranoid umask
[~shefty/rdma-dev.git] / scripts / package / builddeb
index 49b74e1ee12d0b97f9e2ca5759e853b4917c1aad..4dfec9aaaace810fe640e0d968dd10d4f7891a08 100644 (file)
@@ -49,8 +49,10 @@ fi
 
 # Setup the directory structure
 rm -rf "$tmpdir" "$fwdir"
-mkdir -p "$tmpdir/DEBIAN" "$tmpdir/lib" "$tmpdir/boot" "$tmpdir/usr/share/doc/$packagename"
-mkdir -p "$fwdir/DEBIAN" "$fwdir/lib" "$fwdir/usr/share/doc/$fwpackagename"
+mkdir -m 755 -p "$tmpdir/DEBIAN"
+mkdir -p  "$tmpdir/lib" "$tmpdir/boot" "$tmpdir/usr/share/doc/$packagename"
+mkdir -m 755 -p "$fwdir/DEBIAN"
+mkdir -p "$fwdir/lib" "$fwdir/usr/share/doc/$fwpackagename"
 if [ "$ARCH" = "um" ] ; then
        mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/bin"
 fi