svn commit: samba r23344 - in branches: SAMBA_3_0/source/lib
SAMBA_3_0_26/source/lib
vlendec at samba.org
vlendec at samba.org
Mon Jun 4 19:50:31 GMT 2007
Author: vlendec
Date: 2007-06-04 19:50:30 +0000 (Mon, 04 Jun 2007)
New Revision: 23344
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23344
Log:
Better error message
Modified:
branches/SAMBA_3_0/source/lib/messages_local.c
branches/SAMBA_3_0_26/source/lib/messages_local.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/messages_local.c
===================================================================
--- branches/SAMBA_3_0/source/lib/messages_local.c 2007-06-04 19:45:41 UTC (rev 23343)
+++ branches/SAMBA_3_0/source/lib/messages_local.c 2007-06-04 19:50:30 UTC (rev 23344)
@@ -93,9 +93,11 @@
O_RDWR|O_CREAT,0600);
if (!tdb) {
- DEBUG(0,("ERROR: Failed to initialise messages database\n"));
+ NTSTATUS status = map_nt_error_from_unix(errno);
+ DEBUG(0, ("ERROR: Failed to initialise messages database: "
+ "%s\n", strerror(errno)));
TALLOC_FREE(result);
- return NT_STATUS_INTERNAL_DB_CORRUPTION;
+ return status;
}
sec_init();
Modified: branches/SAMBA_3_0_26/source/lib/messages_local.c
===================================================================
--- branches/SAMBA_3_0_26/source/lib/messages_local.c 2007-06-04 19:45:41 UTC (rev 23343)
+++ branches/SAMBA_3_0_26/source/lib/messages_local.c 2007-06-04 19:50:30 UTC (rev 23344)
@@ -93,9 +93,11 @@
O_RDWR|O_CREAT,0600);
if (!tdb) {
- DEBUG(0,("ERROR: Failed to initialise messages database\n"));
+ NTSTATUS status = map_nt_error_from_unix(errno);
+ DEBUG(0, ("ERROR: Failed to initialise messages database: "
+ "%s\n", strerror(errno)));
TALLOC_FREE(result);
- return NT_STATUS_INTERNAL_DB_CORRUPTION;
+ return status;
}
sec_init();
More information about the samba-cvs
mailing list