Re: Bug: Overwrites incorrect file - Mailing list pgadmin-support

From David Jarvis
Subject Re: Bug: Overwrites incorrect file
Date
Msg-id AANLkTikk5fbBKaVDxvy6EWG0PjkR9l_EGlkQKK0NXloc@mail.gmail.com
Whole thread Raw
In response to Re: Bug: Overwrites incorrect file  (Guillaume Lelarge <guillaume@lelarge.info>)
Responses Re: Bug: Overwrites incorrect file
List pgadmin-support
Try this:<br /><ol><li>cd $HOME<li>touch <b>.xsession-errors</b><li>pgadmin3<li>Connect to a database<li>Click on
tables<li>Clickthe Execute arbitrary statements button<li>Type some text<li> Save as ... test.sql</ol>Next:<br
/><ol><li>Type<b>Alt-f</b><li>Type <b>a</b><li>Click test.sql<li>Click Save<li>Click Replace</ol>You should now receive
anerror that the file could not be saved (because you are saving over a directory) <b>OR</b> it will overwrite an
existingfile..<br /><br />If the file .xsession-errors is in the same directory that you are saving, the save as
routinewill "randomly" select a different file to save over.<br /><br />I discovered this by:<br /><ol><li>Saving the
fileinto <b>/tmp</b>: there was no error.<li>Recreating all of the hidden "dot" subdirectories from $HOME directory
into<b>/home/temp</b>.<li>Saving the file into <b>/home/temp</b>; there was no error.<br /></ol>This meant that the
maindifference was that there are hidden "dot" files in $HOME but not in <b>/home/temp</b>. (Admittedly, it could have
beena combination of dot directories, dot files, the number of files, or some weird sum of name lengths issue.)<br
/><br/>I then noticed I had a 100k .xsession-errors file in $HOME that I did not need. After I deleted it, I could no
longerrecreate the bug. Certainly more than a coincidence. ;-)<br /><br />Dave<br /><br /> 

pgadmin-support by date:

Previous
From: David Jarvis
Date:
Subject: Re: Bug: Overwrites incorrect file
Next
From: Guillaume Lelarge
Date:
Subject: Re: Bug: Overwrites incorrect file