Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Test Fails While Compiling



Can you try with attached patch?

It uses `gdbm_strerror(gdbm_errno)`, we would see exact error reason.

-- 
  Sebastian Gniazdowski
  psprint3@xxxxxxxxxxxx
diff --git a/Src/Modules/db_gdbm.c b/Src/Modules/db_gdbm.c
index 596a8ae..f812360 100644
--- a/Src/Modules/db_gdbm.c
+++ b/Src/Modules/db_gdbm.c
@@ -159,7 +159,7 @@ bin_ztie(char *nam, char **args, Options ops, UNUSED(int func))
 	addmodulefd(gdbm_fdesc(dbf), FDT_MODULE);
         append_tied_name(pmname);
     } else {
-	zwarnnam(nam, "error opening database file %s", resource_name);
+	zwarnnam(nam, "error opening database file %s (error: %s)", resource_name, gdbm_strerror(gdbm_errno));
 	return 1;
     }
 


Messages sorted by: Reverse Date, Date, Thread, Author