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: ni...@exim.org
          Reporter: r.k...@cranfield.ac.uk
                CC: exim-dev@exim.org

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.
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim 
details at http://www.exim.org/ ##

Reply via email to