Summary: | scrollkeeper-update doesn't check for empty dirs in /usr/share/omf | ||
---|---|---|---|
Product: | Rarian | Reporter: | Götz Waschk <goetz.waschk> |
Component: | General | Assignee: | Don Scorgie <Don> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | dmacks |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Götz Waschk
2007-07-31 07:22:19 UTC
Looks like a bug in process_dir() (in rarian-sk-update.in). There's a loop over all files in the directory: for f in $1/*.omf; do If there's nothing in the directory, then the glob pattern itself is treated as the loop value list rather than the (empty) list of the glob match. Crazy, no? Not sure the solution...I don't do much bash. I guess one could test '-e $f' in the loop to make sure it's a real thing before processing it. Or else check that '$f != "*.omf"'. The bash manpage told me that this behavior is under the control of $nullglob, but I can get that to work (and having something that takes non-standard settings to "work" seems fragile/non-portable anyway). |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.