<html>
    <head>
      <base href="https://bugs.freedesktop.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 - Error out on save if the file we had opened has been modified since we opened it"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103793">103793</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Error out on save if the file we had opened has been modified since we opened it
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>aacid@kde.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=135556" name="attach_135556" title="Error out on save if file has changed since we opened it">attachment 135556</a> <a href="attachment.cgi?id=135556&action=edit" title="Error out on save if file has changed since we opened it">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=103793&attachment=135556'>[review]</a>
Error out on save if file has changed since we opened it

In poppler we keep the fd of the file open so the XRef+FileStream can locate
objects. This is good since we save lots of memory for not having everything on
memory all the time, but that means that when we want to save we need the file
to be exactly the same as it was when we created the XRef otherwise we're going
to be reading from the wrong part of the "new" file.

The attached patch checks the modification time of the fd and errors out if it
has changed since we opened the file.

It's a stub in windows since my understanding there is that you can't edit a
file that is open by another program.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>