[Portland-bugs] [Bug 91500] New: xdg-open may expand %f as relative path

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jul 29 01:51:43 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=91500

            Bug ID: 91500
           Summary: xdg-open may expand %f as relative path
           Product: Portland
           Version: unspecified
          Hardware: Other
                OS: Linux (All)
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: xdg-utils
          Assignee: portland-bugs at lists.freedesktop.org
          Reporter: gino.corazzi at gmail.com

Created attachment 117440
  --> https://bugs.freedesktop.org/attachment.cgi?id=117440&action=edit
xdg-open: expand %[fFuU] as full path

While trying to setup urxvt as inode/directory handler (Exec=urxvt -cd %f) I
noticed that the %f field code may be expanded as a relative path, causing
urxvt to fail.

In wider terms, some applications could have problems dealing with relative
paths, while absolute paths should be "safe" for anything.

I can't foresee any issue introduced by the attached diff, but any comment is
welcome.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/portland-bugs/attachments/20150729/0043c302/attachment.html>


More information about the Portland-bugs mailing list