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 "-"

Submitter:  Christoph Berg <myon>
Submitted:  Sun 05 Nov 2006 09:03:06 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jemarch
Open/Closed:  Closed Release:  3.6.3

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

Patch applied and tested.

Jose E. Marchesi <jemarch>
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>, -email is 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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
  • -email is unavailable- added by jemarch (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-06-25 jemarch StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2007-06-25 jemarch ReleaseNone 3.6.3
    2007-06-25 jemarch StatusNone In Progress
        Assigned toNone jemarch
    2006-11-06 None Attached File- Added gv-filenames-beginning-with-minus-v2.patch, #11171
    2006-11-06 myon Carbon-Copy- Added markus steinborn <msteinbo@uni-paderborn.de>
    2006-11-06 None Attached File- Added gv-filenames-beginning-with-minus.patch, #11169

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code