diff -r edd9b0fa63ca -r 3ad2e14e4cb7 librazor/rpm.c --- a/librazor/rpm.c Mon Jan 12 17:54:13 2009 +0000 +++ b/librazor/rpm.c Wed Jan 14 11:47:55 2009 +0000 @@ -754,7 +754,7 @@ installer.root = root; /* FIXME: Only do this before a transaction, not per rpm. */ - if (stat(root, &buf) < 0 || !S_ISDIR(buf.st_mode)) { + if (*root && (stat(root, &buf) < 0 || !S_ISDIR(buf.st_mode))) { fprintf(stderr, "root installation directory \"%s\" does not exist\n", root);