summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-06-30 08:44:31 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-06-30 08:44:31 +0000
commitab2a89f7a42c8935b28ac11c779dd2da62256350 (patch)
tree6ba2cb7806a3d6981f7a181dc3d9c4e271bb3962 /move
parentaaf7e30df737fc769ec195a97a3951fee5345e7e (diff)
downloaddrakx-backup-do-not-use-ab2a89f7a42c8935b28ac11c779dd2da62256350.tar
drakx-backup-do-not-use-ab2a89f7a42c8935b28ac11c779dd2da62256350.tar.gz
drakx-backup-do-not-use-ab2a89f7a42c8935b28ac11c779dd2da62256350.tar.bz2
drakx-backup-do-not-use-ab2a89f7a42c8935b28ac11c779dd2da62256350.tar.xz
drakx-backup-do-not-use-ab2a89f7a42c8935b28ac11c779dd2da62256350.zip
create directories if needed for "READ" files of etcfiles
Diffstat (limited to 'move')
-rw-r--r--move/move.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/move/move.pm b/move/move.pm
index b7c36b227..bb20a1156 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -57,6 +57,7 @@ sub handle_etcfiles {
$allowed = member($mode, @allowed_modes);
} elsif (m|^/| && $allowed) {
if ($mode eq 'READ') {
+ mkdir_p(dirname($_));
symlinkf_short("/image$_", $_) if !-e $_;
} elsif ($mode eq 'OVERWRITE') {
mkdir_p(dirname($_));