Summary: | resume scripts run in incorrect sort order | ||
---|---|---|---|
Product: | pm-utils | Reporter: | Ben Liblit <liblit> |
Component: | General | Assignee: | Richard Hughes <richard> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | victor.lowther |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Ben Liblit
2008-02-18 21:20:48 UTC
This is actually happening as a result of a broken merge. The correct fix is: diff --git a/pm/functions.in b/pm/functions.in index 07fa468..f3bdc6c 100644 --- a/pm/functions.in +++ b/pm/functions.in @@ -135,8 +135,8 @@ run_hooks() " IFS="${nifs}" # tolerate spaces in filenames. [ "$3" = "reverse" ] && sort="sort -r" - for base in $(for f in "$syshooks/"*[!~] "$phooks/"*[!~]; - do [ -O "$f" ] && echo ${f##*/} ; done | sort | uniq) ; + for base in $(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; + do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq) ; do if [ -f "$syshooks/$base" ]; then hook="$syshooks/$base" -- I will commit this fix to the freedesktop.org upstream. Fix pushed to fd.o git repository. |
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.