Red Hat Bugzilla – Bug 135405
Strange test of /class in /sbin/start_udev
Last modified: 2007-11-30 17:10:51 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.7.2)
Description of problem:
In /sbin/start_udev, on line 24, there is a test
[ ! -d $sysfs_dir/class ] || exit 1
Unless sysfs_dir is imported in the environment, the semantics of this
line is to exit if there does exist a directory /class. Probably that
is seldom the case.
Later on, on line 33, the variable used above is set
Version-Release number of selected component (if applicable):
Steps to Reproduce:
(I haven't actually run this. I found this during a "code inspection".)
Presumably, the variable settings should be done before the tests, and
this particular test should be inverted.
[ -d $sysfs_dir/class ] || exit 1
thank god it's a double bug :)
Thank you very much for spotting this!