<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>28728</bug_id>
          
          <creation_ts>2013-03-21 13:49:34 +0400</creation_ts>
          <short_desc>ошибка в open_generic()</short_desc>
          <delta_ts>2014-05-24 23:38:35 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>xdg-utils</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="dfo">dfo</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          <cc>aen</cc>
    
    <cc>antohami</cc>
    
    <cc>boyarsh</cc>
    
    <cc>cas</cc>
    
    <cc>lav</cc>
    
    <cc>manowar</cc>
    
    <cc>mike</cc>
    
    <cc>rirusha</cc>
    
    <cc>sem</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>138942</commentid>
    <comment_count>0</comment_count>
    <who name="dfo">dfo</who>
    <bug_when>2013-03-21 13:49:34 +0400</bug_when>
    <thetext>в xdg-utils в /usr/bin/xdg-open в open_generic() написано:
...
IFS=&quot;:&quot;
...
eval &apos;$browser $1&apos;$xdg_redirect_output;

соответственно при попытке &quot;xdg-open http://some-url&quot; получается, что $browser зовётся с двумя аргументами - &quot;http&quot; и &quot;//some-url&quot;, что не есть то, что хотелось бы.

я не знаю - чего они там хотели этим (IFS=:)добиться, поэтому патча не шлю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146658</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2014-05-24 21:06:50 +0400</bug_when>
    <thetext>*** Bug 28185 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146659</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2014-05-24 22:58:47 +0400</bug_when>
    <thetext>---
Патч для исправления бага (xdg-open):
632a633
&gt; unset IFS

Если кратко, то у них перечень браузеров дается в строке через двоеточия, а
для цикла поиска браузера автор решил задавать переменную IFS. И эту
переменную после входа в тело цикла автор не обнуляет, поэтому двоеточия в
$1 вызывают разбиение параметров на части, которые самому браузеру были бы
видны как $1, $2 и т. д. У других людей не воспроизводилось, т. к. этот баг
в функции для generic DE.
--- Maxim Suhanov</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146661</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2014-05-24 23:38:35 +0400</bug_when>
    <thetext>xdg-utils-1.1.0-alt10 -&gt; sisyphus:

* Sat May 24 2014 Michael Shigorin &lt;mike@altlinux&gt; 1.1.0-alt10
- xdg-open: fix totally broken IFS use (closes: #28728)
  + thanks Maxim Suhanov for analysis</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>