Prepare for killing the fsm: Remove superfluous check for being in FSM_PROCESS to allow killing FSM_PROCESS. fsmVerify is only called while being in FSM_PROCESS.

This commit is contained in:
Florian Festi 2012-03-28 12:12:42 +02:00
parent a6479a8e47
commit 80419742e6
1 changed files with 1 additions and 2 deletions

View File

@ -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 */
}