[exim-dev] [Bug 2242] New: exim_dbmbuild fails to open outpu…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2242] New: exim_dbmbuild fails to open output files relative to cwd if no / in name
https://bugs.exim.org/show_bug.cgi?id=2242

            Bug ID: 2242
           Summary: exim_dbmbuild fails to open output files relative to
                    cwd if no / in name
           Product: Exim
           Version: 4.90
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Unfiled
          Assignee: nigel@???
          Reporter: r.kerr@???
                CC: exim-dev@???


Since 4.90 exim_dbmbuild fails to open output files in the current working
directory unless the filename is prefixed with ./

The issue seems to be around line 210 in exim_dbmbuild.c:

Ustrcpy(dirname, temp_dbmname);
if ((bptr = Ustrrchr(dirname, '/')))
*bptr = '\0';

If no slash is present in temp_dbmname then dirname becomes a duplicate of
temp_dbmname. Which leads to a file not found error later when creating the
temporary file.

I guess an else condition is required here to set dirname to ./ if no slash is
present?

--
You are receiving this mail because:
You are on the CC list for the bug.