summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-04-19 15:14:37 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-04-19 15:14:37 +0000
commit4e5e8e6bd6883e84150adb9475e4bba75ccbd7c6 (patch)
treeb4af55b34c9c5f97530ad07a7939af8200601ebf /move
parentefdd5965c477616be56b9f56a8613645ff2dac41 (diff)
downloaddrakx-4e5e8e6bd6883e84150adb9475e4bba75ccbd7c6.tar
drakx-4e5e8e6bd6883e84150adb9475e4bba75ccbd7c6.tar.gz
drakx-4e5e8e6bd6883e84150adb9475e4bba75ccbd7c6.tar.bz2
drakx-4e5e8e6bd6883e84150adb9475e4bba75ccbd7c6.tar.xz
drakx-4e5e8e6bd6883e84150adb9475e4bba75ccbd7c6.zip
fix handling directories-to-create
Diffstat (limited to 'move')
-rw-r--r--move/move.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/move/move.pm b/move/move.pm
index 04105b6a0..d8ec5b7f6 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -143,7 +143,8 @@ sub init {
foreach (cat_('/image/move/directories-to-create')) {
my ($mode, $uid, $gid, $name) = split;
next if -d $name;
- mkdir($name, oct($mode));
+ mkdir($name);
+ chmod(oct($mode), $name);
chown($uid, $gid, $name);
}