Eliminate unused no-op FSM_CHROOT stage
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 31 May 2010 10:28:58 +0000 (13:28 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 31 May 2010 10:29:43 +0000 (13:29 +0300)
- the fsm thingie doesn't need to deal with chroot issues: except for
  build where it doesn't matter, its only called from psm where the
  chroot is already taken care of

lib/fsm.c
lib/fsm.h

index 01d5f1e..f926c99 100644 (file)
--- a/lib/fsm.c
+++ b/lib/fsm.c
@@ -2128,9 +2128,6 @@ if (!(fsm->mapFlags & CPIO_ALL_HARDLINKS)) break;
            rc = 0;
        }
        break;
-    case FSM_CHROOT:
-       break;
-
     case FSM_NEXT:
        rc = fsmUNSAFE(fsm, FSM_HREAD);
        if (rc) break;
@@ -2342,7 +2339,6 @@ static const char * fileStageString(fileStage a) {
     case FSM_LSTAT:    return "lstat";
     case FSM_STAT:     return "stat";
     case FSM_READLINK: return "readlink";
-    case FSM_CHROOT:   return "chroot";
     case FSM_SETCAP:   return "setcap";
 
     case FSM_NEXT:     return "next";
index 4844039..883c57f 100644 (file)
--- a/lib/fsm.h
+++ b/lib/fsm.h
@@ -63,7 +63,6 @@ typedef enum fileStage_e {
     FSM_LSTAT  =  _fs(48),
     FSM_STAT   =  _fs(49),
     FSM_READLINK=  _fs(50),
-    FSM_CHROOT =  _fs(51),
     FSM_SETCAP =  _fs(52),
 
     FSM_NEXT   =  _fd(65),