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:
parent
a6479a8e47
commit
80419742e6
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue