[Rpm-maint] [PATCH 01/19] Execute matchpathcon_init in a chroot

James Antill james at fedoraproject.org
Fri Feb 5 17:26:00 UTC 2010


On Tue, 2010-02-02 at 15:25 -0500, Steve Lawrence wrote:
> +       const char * rootDir = rpmtsRootDir(ts);
> +       int dochroot = (rootDir != NULL && !rstreq(rootDir, "/") && *rootDir == '/');
> +       if (dochroot) {

 Wouldn't this be better as:

int dochroot = (rootDir != NULL && rootDir[0] == '/' && rootDir[1]);



More information about the Rpm-maint mailing list