Filter ENOTSUP lsetfilecon() to permit tmpfs mount on /dev/shm.
authorjbj <devnull@localhost>
Sat, 6 Mar 2004 17:59:22 +0000 (17:59 +0000)
committerjbj <devnull@localhost>
Sat, 6 Mar 2004 17:59:22 +0000 (17:59 +0000)
CVS patchset: 7152
CVS date: 2004/03/06 17:59:22

lib/fsm.c

index 48bce30..ba06b16 100644 (file)
--- a/lib/fsm.c
+++ b/lib/fsm.c
@@ -2182,7 +2182,7 @@ if (!(fsm->mapFlags & CPIO_ALL_HARDLINKS)) break;
            rpmMessage(RPMMESS_DEBUG, " %8s (%s, %s) %s\n", cur,
                fsm->path, fsm->fcontext,
                (rc < 0 ? strerror(errno) : ""));
-       if (rc < 0)     rc = CPIOERR_LSETFCON_FAILED;
+       if (rc < 0 && errno != ENOTSUP) rc = CPIOERR_LSETFCON_FAILED;
        break;
     case FSM_CHOWN:
        rc = chown(fsm->path, st->st_uid, st->st_gid);