--- rpm-4.3.3/lib/psm.c.execcon 2004-11-29 11:14:47.000000000 -0500 +++ rpm-4.3.3/lib/psm.c 2004-11-29 11:16:10.000000000 -0500 @@ -783,13 +783,6 @@ /* XXX Don't mtrace into children. */ unsetenv("MALLOC_CHECK_"); - /* Permit libselinux to do the scriptlet exec. */ - if (rpmtsSELinuxEnabled(ts) == 1) { - xx = rpm_execcon(0, argv[0], argv, environ); - if (xx != 0) - break; - } - /*@-nullstate@*/ #if defined(__GLIBC__) @@ -824,6 +817,14 @@ } } #endif + + /* Permit libselinux to do the scriptlet exec. */ + if (rpmtsSELinuxEnabled(ts) == 1) { + xx = rpm_execcon(0, argv[0], argv, environ); + if (xx != 0) + break; + } + xx = execv(argv[0], (char *const *)argv); /*@=nullstate@*/ break;