From d2b35954e0ed62510c5cc8e24ab5e1de481d663e Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sun, 25 Jan 2009 20:11:54 -0500 Subject: [PATCH] Fix an accidental typo-uncorrection. svn path=/trunk/packages/invirt-remote/; revision=1990 --- host/usr/sbin/invirt-lvm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/usr/sbin/invirt-lvm b/host/usr/sbin/invirt-lvm index 78ce700..22a7805 100755 --- a/host/usr/sbin/invirt-lvm +++ b/host/usr/sbin/invirt-lvm @@ -67,7 +67,7 @@ if subcommand == "lvremove": # it. There's not really anything sane to do with errors (since # this is running non-interactively), so let's just drop them on # the floor for now. - if os.fork() != 0: + if os.fork() == 0: call(["/bin/dd", "if=/dev/zero", "of=%s" % new_lvpath]) call(["/sbin/lvchange", "-a", "n", new_lvpath]) call(["/sbin/lvchange", "-a", "ey", new_lvpath]) -- 1.7.9.5