diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-28 22:10:56 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-28 22:10:56 +0000 |
commit | b9e3e2e7c74a9290e71400aef26e29ca82b08a8c (patch) | |
tree | 8b87fef1d99ef33d920e203390fdaf33cd9397f4 /move | |
parent | d43b34011a52eab5d9dcdc2301b09ecc09e02c76 (diff) | |
download | drakx-b9e3e2e7c74a9290e71400aef26e29ca82b08a8c.tar drakx-b9e3e2e7c74a9290e71400aef26e29ca82b08a8c.tar.gz drakx-b9e3e2e7c74a9290e71400aef26e29ca82b08a8c.tar.bz2 drakx-b9e3e2e7c74a9290e71400aef26e29ca82b08a8c.tar.xz drakx-b9e3e2e7c74a9290e71400aef26e29ca82b08a8c.zip |
don't do useless copy files on self when no /etc/passwd is found
Diffstat (limited to 'move')
-rw-r--r-- | move/move.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/move/move.pm b/move/move.pm index d959626fe..605adb4f9 100644 --- a/move/move.pm +++ b/move/move.pm @@ -267,10 +267,10 @@ sub key_installfiles { print "inconsistency: more than one /etc/passwd on key! can't proceed, please clean the key\n"; exit 1; } + return if !@etcpasswords; my ($path) = $etcpasswords[0] =~ m|(.*)/etc/passwd|; run_program::run('cp', '-f', "$path$_", $_) foreach @files; run_program::run('rm', '-f', $etcpasswords[0]); - return $etcpasswords[0]; }; if (!-d $sysconf) { |