| changeset 349 | 64c526a27351 |
| parent 345 | edd9b0fa63ca |
| child 351 | 48b0adfe3059 |
1.1 --- a/librazor/rpm.c Mon Jan 12 17:54:13 2009 +0000 1.2 +++ b/librazor/rpm.c Wed Jan 14 11:48:50 2009 +0000 1.3 @@ -754,7 +754,7 @@ 1.4 installer.root = root; 1.5 1.6 /* FIXME: Only do this before a transaction, not per rpm. */ 1.7 - if (stat(root, &buf) < 0 || !S_ISDIR(buf.st_mode)) { 1.8 + if (*root && (stat(root, &buf) < 0 || !S_ISDIR(buf.st_mode))) { 1.9 fprintf(stderr, 1.10 "root installation directory \"%s\" does not exist\n", 1.11 root);