From b9e3e2e7c74a9290e71400aef26e29ca82b08a8c Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 28 Nov 2003 22:10:56 +0000 Subject: don't do useless copy files on self when no /etc/passwd is found --- move/move.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.1