aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/file_perm.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-08 10:04:25 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-08 10:04:25 +0000
commitf4ba01f701a60e56b8d9f1a1322f10a6544e3602 (patch)
tree70d51a08f0afa917b2eaf548c008492cd04f1d92 /init-sh/file_perm.sh
parent5479a5bebbb93b523626bc9fbc720c6572d71def (diff)
downloadmsec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar.gz
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar.bz2
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar.xz
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.zip
*** empty log message ***
Diffstat (limited to 'init-sh/file_perm.sh')
-rwxr-xr-xinit-sh/file_perm.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/init-sh/file_perm.sh b/init-sh/file_perm.sh
index be834b7..acce5c0 100755
--- a/init-sh/file_perm.sh
+++ b/init-sh/file_perm.sh
@@ -5,11 +5,7 @@ IFS="
echo -n "Setting files permissions : "
-for line in `cat /$1`; do
- file=`echo ${line} | awk '{print $1}'`
- owner=`echo ${line} | awk '{print $2}'`
- perm=`echo ${line} | awk '{print $3}'`
-
+cat $1 | while read file owner perm; do
if [ -a "${file}" ]; then
if [ ${owner} != "current" ]; then
chown ${owner} ${file}