<html>
    <head>
      <base href="https://bugzilla.icculus.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - errors in Unix-errorhandling"
   href="https://bugzilla.icculus.org/show_bug.cgi?id=6021">6021</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>errors in Unix-errorhandling
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>ioquake3
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>GIT MASTER
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P3
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Platform
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>zachary@ioquake.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dietrich_joerg@t-online.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>quake3-bugzilla@icculus.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=3381&action=diff" name="attach_3381" title="patch to correct the errorhandling-errors">attachment 3381</a> <a href="attachment.cgi?id=3381&action=edit" title="patch to correct the errorhandling-errors">[details]</a></span>
patch to correct the errorhandling-errors

There are two errors in function Sys_ErrorDialog() in code/sys/sys_unix.c.
This function tries to write to ~/.q3a/baseq3/crashlog.txt.
If its directory doesn't yet exist, it tries to create it and fails.
The first error is to use the filename of the file
and not its directory-name, so it creates a directory "crashlog.txt".
The second error is that it doesn't create all the parent-directories
should these be missing.
Attached is a patch which corrects these errors.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>