Prepare for killing the fsm: Remove superfluous check for being in FSM_PROCESS to...
authorFlorian Festi <ffesti@redhat.com>
Wed, 28 Mar 2012 10:12:42 +0000 (12:12 +0200)
committerFlorian Festi <ffesti@redhat.com>
Fri, 30 Mar 2012 13:00:40 +0000 (15:00 +0200)
lib/fsm.c

index 225779a..a74a906 100644 (file)
--- a/lib/fsm.c
+++ b/lib/fsm.c
@@ -1677,8 +1677,7 @@ static int fsmVerify(FSM_t fsm)
         if (S_ISSOCK(ost->st_mode)) return 0;
     }
     /* XXX shouldn't do this with commit/undo. */
-    rc = 0;
-    if (fsm->stage == FSM_PROCESS) rc = fsmUnlink(fsm->path, fsm->mapFlags);
+    rc = fsmUnlink(fsm->path, fsm->mapFlags);
     if (rc == 0)       rc = CPIOERR_ENOENT;
     return (rc ? rc : CPIOERR_ENOENT); /* XXX HACK */
 }