diff options
author | Nathan Kinder <nkinder@redhat.com> | 2009-03-03 17:35:59 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2009-03-03 17:35:59 +0000 |
commit | ae5c362f688f0c3a758a08bbd07ce55deddf8ced (patch) | |
tree | 8624236e63b4bda6cc852fea854088aefb387737 /ldap/servers | |
parent | 7a867717bfc9504b11b3bef2c62893cbe31abf34 (diff) | |
download | ds-ae5c362f688f0c3a758a08bbd07ce55deddf8ced.tar.gz ds-ae5c362f688f0c3a758a08bbd07ce55deddf8ced.tar.xz ds-ae5c362f688f0c3a758a08bbd07ce55deddf8ced.zip |
Resolves: bug 486400
Bug Description: During migration, if import fails for some reason,
the exact cause of why it was unable to open the LDIF is not logged.
Reviewed by: nhosoi (thanks!)
Files: see diff
Branch: HEAD
Fix Description: As discussed in the bug council, the fix is to just
report the actual error returned when the open() of the LDIF fails.
This reports the errno and a string description of the error in the
errors log (which is also output to stderr when running ldif2db).
Platforms tested: F9
Flag Day: no
Doc impact: no
Diffstat (limited to 'ldap/servers')
-rw-r--r-- | ldap/servers/slapd/back-ldbm/import-threads.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldap/servers/slapd/back-ldbm/import-threads.c b/ldap/servers/slapd/back-ldbm/import-threads.c index c912023c..7a1bcba1 100644 --- a/ldap/servers/slapd/back-ldbm/import-threads.c +++ b/ldap/servers/slapd/back-ldbm/import-threads.c @@ -461,8 +461,8 @@ void import_producer(void *param) fd = dblayer_open_huge_file(curr_filename, o_flag, 0); } if (fd < 0) { - import_log_notice(job, "Could not open LDIF file \"%s\"", - curr_filename); + import_log_notice(job, "Could not open LDIF file \"%s\", errno %d (%s)", + curr_filename, errno, slapd_system_strerror(errno)); goto error; } if (fd == STDIN_FILENO) { |