diff options
author | Gareth Stockwell <gareth.stockwell@arm.com> | 2013-09-09 21:06:08 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2013-09-09 21:06:26 +0530 |
commit | f7ff2b0b89e159eacddd5a2e2068d2cbf27ede37 (patch) | |
tree | ac3e3ef6d1b8088a498a033a4f5caa09cb67f882 | |
parent | 958a0690729f73251b894e1f4ed5f96e981c886a (diff) | |
download | linaro-android-tools-f7ff2b0b89e159eacddd5a2e2068d2cbf27ede37.tar.gz |
linaro-android-nfs-tool.sh: clear umask before creating rootfs
This ensures that all files and directories are extracted from the
tarballs with the correct permissions.
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rwxr-xr-x | linaro-android-nfs-tool.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linaro-android-nfs-tool.sh b/linaro-android-nfs-tool.sh index 7f76606..2195903 100755 --- a/linaro-android-nfs-tool.sh +++ b/linaro-android-nfs-tool.sh @@ -313,6 +313,8 @@ function func_install_binaries(){ } function func_create_rootfs(){ + umask 0 + if [ -z "${rootfs_dir}" ];then template=$(date '+%y%m%d-%H%M%S') rootfs_dir=`mktemp -d -u --tmpdir=${default_nfs_root_dir} -t $template.XXX` |