[Portland-bugs] [Bug 69339] New: Unquoted file name in xdg-desktop-menu
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Sep 13 15:41:38 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=69339
Priority: medium
Bug ID: 69339
Assignee: portland-bugs at lists.freedesktop.org
Summary: Unquoted file name in xdg-desktop-menu
Severity: normal
Classification: Unclassified
OS: All
Reporter: Martin.vGagern at gmx.net
Hardware: All
Status: NEW
Version: 1.1.0 rc1
Component: xdg-utils
Product: Portland
Line 895 of the xdg-desktop-menu script passed a file name unquoted to grep:
http://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-desktop-menu?id=2baf6ae56f9b622ca51aa79ff370676aaef93908#n895
if grep 'generated and managed by xdg-desktop-menu' $menu_file > /dev/null 2>
/dev/null; then
On my system I have a file name containing the sequence ' - ', which caused
grep to read from stdin, with obscure side effects. I believe that the command
should be something like this:
grep 'ge…nu' -- "$menu_file"
--
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/20130913/4512de82/attachment.html>
More information about the Portland-bugs
mailing list