summaryrefslogtreecommitdiffstats
path: root/move/move.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-28 21:12:25 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-28 21:12:25 +0000
commitd43b34011a52eab5d9dcdc2301b09ecc09e02c76 (patch)
treebdccc6b7209f812850b99d79c4a7183e09f2a691 /move/move.pm
parent72ca5262c252acc49674a143808d85a9ffc65275 (diff)
downloaddrakx-backup-do-not-use-d43b34011a52eab5d9dcdc2301b09ecc09e02c76.tar
drakx-backup-do-not-use-d43b34011a52eab5d9dcdc2301b09ecc09e02c76.tar.gz
drakx-backup-do-not-use-d43b34011a52eab5d9dcdc2301b09ecc09e02c76.tar.bz2
drakx-backup-do-not-use-d43b34011a52eab5d9dcdc2301b09ecc09e02c76.tar.xz
drakx-backup-do-not-use-d43b34011a52eab5d9dcdc2301b09ecc09e02c76.zip
*** empty log message ***
Diffstat (limited to 'move/move.pm')
-rw-r--r--move/move.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/move/move.pm b/move/move.pm
index a31638c68..d959626fe 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -37,7 +37,10 @@ sub handle_etcfiles {
m|^# (\S+)| and $mode = $1;
m|^/| && member($mode, @allowed_modes) and do {
$mode eq 'READ' && !-e $_ and symlinkf_short("/image$_", $_);
- $mode eq 'OVERWRITE' and system("cp /image$_ $_"); #- need copy contents
+ if ($mode eq 'OVERWRITE') {
+ mkdir_p(dirname($_));
+ system("cp /image$_ $_"); #- need copy contents
+ }
$mode eq 'DIR' and mkdir_p $_;
}
}