# HG changeset patch # User J. Ali Harlow # Date 1231866291 0 # Node ID 7538f8dc442549ab7cd28099751e4742fa34c262 # Parent 765b72a613b25034a547a98af529ab7dc18e8b23 Don't try and stat the installation root if it's the empty string. diff -r 765b72a613b2 -r 7538f8dc4425 librazor/rpm.c --- a/librazor/rpm.c Mon Jan 12 18:53:02 2009 +0000 +++ b/librazor/rpm.c Tue Jan 13 17:04:51 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);