<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>20846</bug_id>
          
          <creation_ts>2003-05-12 09:10 0000</creation_ts>
          <short_desc>Hotplug 20030501 script errors</short_desc>
          <delta_ts>2003-06-07 09:30:35 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>1.4_rc1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>deviantgeek@gmail.com</reporter>
          <assigned_to>zwelch@gentoo.org</assigned_to>
          <cc>azarah@gentoo.org</cc>
    
    <cc>chadh@gentoo.org</cc>
    
    <cc>tigger@gentoo.org</cc>
    
    <cc>zwelch@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>deviantgeek@gmail.com</who>
            <bug_when>2003-05-12 09:10:53 0000</bug_when>
            <thetext>When hotplug starts up it errors out towards the end of it&apos;s run. although it
completes with a successful status and it seems to work fine, there appears to
be somthing missing from the script (maybe quotes?).

Reproducible: Always
Steps to Reproduce:
1. Emerge hotplug-20030501
2. Start hotplug
3.

Actual Results:  
The following errors are echoed to the console (edited for space):

/etc/hotplug/pci.agent: line 167: [: =: unary operator expected
/etc/hotplug/usb.agent: line 167: [: =: unary operator expected


Expected Results:  
No errors.

Not sure where the error lies. Line 167 on usb.agent is a comment and in
pci.agent, the script does not appear to be wrong.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tigger@gentoo.org</who>
            <bug_when>2003-05-12 19:31:09 0000</bug_when>
            <thetext>Created an attachment (id=11861)
Fixes the unary operator error

The problem was caused by a text being run on an unquoted variable in
/etc/hotplug/hotplug.functions

The patch fixes that specific error, there may be more of those. I haven&apos;t
checked.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tigger@gentoo.org</who>
            <bug_when>2003-05-12 19:32:23 0000</bug_when>
            <thetext>That should have read &quot;test being run&quot; ;) And the line number the error gave was the line number in /etc/hotplug/hotplug.functions btw</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>deviantgeek@gmail.com</who>
            <bug_when>2003-05-14 09:14:42 0000</bug_when>
            <thetext>Fixed. I thought there must have been some quotes missing somewhere but my brain was not functional at the time.

Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dpn@isomerica.net</who>
            <bug_when>2003-05-15 11:12:22 0000</bug_when>
            <thetext>I had the same problem; The patch fixes it for me as well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dnellans@cs.utah.edu</who>
            <bug_when>2003-05-27 11:23:18 0000</bug_when>
            <thetext>I&apos;ll thirdly confirm the bug and that this patch fixes it sucessfully.  Can someone commit this to cvs for the next revision of hotplug?

dave</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zwelch@gentoo.org</who>
            <bug_when>2003-05-27 18:38:27 0000</bug_when>
            <thetext>Fixed in hotplug-20030501-r1.ebuild.  Enjoy.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ian@abbott.org</who>
            <bug_when>2003-06-07 09:30:35 0000</bug_when>
            <thetext>Created an attachment (id=12913)
A better patch to fix the underlying bug

The previous patch merely hides the real bug, which is that the LOADED variable
ought to be 
set to a value each time around the loop.  I mentioned this yesterday on 
linux-hotplug-devel@lists.sourceforge.net along with the attached patch to fix
the 
problem, and that has now been merged.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>11861</attachid>
            <date>2003-05-12 19:31 0000</date>
            <desc>Fixes the unary operator error</desc>
            <filename>hotplug.functions.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGhvdHBsdWcuZnVuY3Rpb25zLm9yaWcJMjAwMy0wNS0xMiAyMzoyMzo1MS4wMDAwMDAwMDAg
KzAwMDAKKysrIGhvdHBsdWcuZnVuY3Rpb25zCTIwMDMtMDUtMTIgMjM6MjI6NTYuMDAwMDAwMDAw
ICswMDAwCkBAIC0xNjQsNyArMTY0LDcgQEAKIAkgICAgTE9BREVEPXRydWUKIAlmaQogCi0JaWYg
WyAkTE9BREVEID0gZmFsc2UgXTsgdGhlbgorCWlmIFsgIiRMT0FERUQiID0gZmFsc2UgXTsgdGhl
bgogCSAgICBtZXNnICJtaXNzaW5nIGtlcm5lbCBvciB1c2VyIG1vZGUgZHJpdmVyICRNT0RVTEUg
IgogCWZpCiAgICAgZG9uZQo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>12913</attachid>
            <date>2003-06-07 09:30 0000</date>
            <desc>A better patch to fix the underlying bug</desc>
            <filename>hotplug.functions.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGV0Yy9ob3RwbHVnL2hvdHBsdWcuZnVuY3Rpb25zLm9yaWcgIDIwMDMtMDQtMTUKMTc6Mzg6
NDIuMDAwMDAwMDAwICswMTAwCisrKyBldGMvaG90cGx1Zy9ob3RwbHVnLmZ1bmN0aW9ucyAgICAg
ICAyMDAzLTA2LTA2IAoxNDoxNjo0Ny4wMDAwMDAwMDAgKzAxMDAKQEAgLTEzMSwxMyArMTMxLDEz
IEBACiAgICAgZm9yIE1PRFVMRSBpbiAkRFJJVkVSUwogICAgIGRvCiAgICAgICAgIyBtYXliZSBk
cml2ZXIgbW9kdWxlcyBuZWVkIGxvYWRpbmcKKyAgICAgICBMT0FERUQ9ZmFsc2UKICAgICAgICBp
ZiAhIGxzbW9kIHwgZ3JlcCAtcSAiXiRNT0RVTEUgIiA+IC9kZXYvbnVsbCAyPiYxOyB0aGVuCiAg
ICAgICAgICAgIGlmIGdyZXAgLXEgIl4kTU9EVUxFXCQiICRIT1RQTFVHX0RJUi9ibGFja2xpc3Qg
XAogICAgICAgICAgICAgICAgICAgID4vZGV2L251bGwgMj4mMTsgdGhlbgogICAgICAgICAgICAg
ICAgZGVidWdfbWVzZyAiLi4uIGJsYWNrbGlzdGVkIG1vZHVsZTogICRNT0RVTEUiCiAgICAgICAg
ICAgICAgICBjb250aW51ZQogICAgICAgICAgICBmaQotICAgICAgICAgICBMT0FERUQ9ZmFsc2UK
CiAgICAgICAgICAgICMgc3RhdGljYWxseSBsaW5rZWQgbW9kdWxlcyBhcmVuJ3Qgc2hvd24gYnkg
J2xzbW9kJywKICAgICAgICAgICAgIyBhbmQgdXNlciBtb2RlIGRyaXZlcnMgd2lsbCBPTkxZIGhh
dmUgYSBzZXR1cCBzY3JpcHQ7Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>