bugGNU gv - Bugs: bug #18209, gv can't open files whose name...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #18209: gv can't open files whose name begins with "-"

Submitted by:  Christoph Berg <myon>
Submitted on:  Sun 05 Nov 2006 09:03:06 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Jose E. Marchesi <jemarch>
Open/Closed: ClosedRelease: 3.6.3

Mon 25 Jun 2007 09:06:07 PM UTC, comment #4:

Patch applied and tested.

Jose E. Marchesi <jemarch>In charge of this item.
Mon 06 Nov 2006 04:03:42 PM UTC, comment #3:

You are right, there has been an error, but it is sufficient to check if "filename" does not equal NULL. I've created an updated patch.

Anonymous
Mon 06 Nov 2006 01:33:40 PM UTC, comment #2:

Hi,

I only looked at the patch (i.e. not at the full source), but shouldn't the free() be protected by the same if statement as the malloc()?

Christoph

Christoph Berg <myon>
Mon 06 Nov 2006 09:10:57 AM UTC, comment #1:

And here is the fix -- please test it.

My contact info is given in the patch file.

Anonymous
Sun 05 Nov 2006 09:03:06 PM UTC, original submission:

Hi,

the following was reported as Debian Bug #397118:

-----------

Date: Sun, 05 Nov 2006 10:35:35 +0000
From: Greg Kochanski <gpk@kochanski.org>
Reply-To: Greg Kochanski <gpk@kochanski.org>, -unavailable-
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Bug #397118: gv can't open files whose name begins with "-"

Package: gv
Version: 1:3.6.2-1
Severity: normal

Create a postscript file called "-0.01.ps",
run gv, then use File->Open, and select -0.01.ps.
You'll get an error box saying "Unknown switch -0.01.ps - ignoring."

Clearly, someone forgot to quote the file name when handing it to
gs.

[...]

Christoph Berg <myon>

 

Attached Files
file #11171:  gv-filenames-beginning-with-minus-v2.patch added by None (1KiB - text/x-patch - Updated patch)
file #11169:  gv-filenames-beginning-with-minus.patch added by None (1KiB - text/x-patch - This should fix bug 18209)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jemarch (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 25 Jun 2007 09:06:07 PM UTCjemarchStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Mon 25 Jun 2007 03:01:25 PM UTCjemarchReleaseNone=>3.6.3
    Mon 25 Jun 2007 02:54:44 PM UTCjemarchStatusNone=>In Progress
      Assigned toNone=>jemarch
    Mon 06 Nov 2006 04:03:42 PM UTCNoneAttached File-=>Added gv-filenames-beginning-with-minus-v2.patch, #11171
    Mon 06 Nov 2006 01:33:40 PM UTCmyonCarbon-Copy-=>Added markus steinborn
    Mon 06 Nov 2006 09:10:57 AM UTCNoneAttached File-=>Added gv-filenames-beginning-with-minus.patch, #11169

    Back to the top


    Powered by Savane 3.1-cleanup1