X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=lib%2Fzpm.c;h=11ee22cc36f6768d161b3a334d401d61d52be1c6;hb=8b1e91714de0575adeb202668d7983b7f987afc0;hp=9b208cc59a237dbabc28319cb7f56ac411bef8ec;hpb=339988d64465820bfce614d4939cdf6a03cd3c51;p=zpackage diff --git a/lib/zpm.c b/lib/zpm.c index 9b208cc..11ee22c 100644 --- a/lib/zpm.c +++ b/lib/zpm.c @@ -337,6 +337,10 @@ int zpm_extract(struct zpm *pkg, char *hash, char *path, mode_t mode) { } db = pkg->db; + if (!path) { + path = "-"; + } + rc = sqlite3_prepare(db, "select size, content from files where hash = ?", -1, &ifile,0); if (rc != SQLITE_OK) { SQLERROR(sqlite3_errmsg(db)); @@ -498,9 +502,9 @@ static int set_elf_info(struct zpm *zpm, char *hash, char *content, if (zpm->error) { return 0; } - } else { - fprintf(stderr, "can't find soname\n"); } + /* some dyn don't have an soname, so we don't + * need to warn */ } /* if exe, set neededs */