000record script is non-functional

Bug #318267 reported by Matt Zimmerman
8
Affects Status Importance Assigned to Milestone
pm-utils (Ubuntu)
Fix Released
Undecided
Andy Whitcroft

Bug Description

Binary package hint: pm-utils

The 000record script which is installed by pm-utils 1.2.2.1-0ubuntu2 is never actually run because its permissions are incorrect:

perseus:[/usr/lib/pm-utils/sleep.d] ls -l
total 76
-rw-r--r-- 1 root root 232 2009-01-17 20:04 000record
-rwxr-xr-x 1 root root 2425 2009-01-14 04:18 00auto-quirk
-rwxr-xr-x 1 root root 274 2009-01-14 04:18 00logging
-rwxr-xr-x 1 root root 203 2009-01-14 04:18 00powersave
-rwxr-xr-x 1 root root 521 2009-01-13 06:02 01PulseAudio
-rwxr-xr-x 1 root root 361 2009-01-09 12:16 48hid2hci
-rwxr-xr-x 1 root root 664 2009-01-14 04:18 49bluetooth
-rwxr-xr-x 1 root root 447 2009-01-14 04:18 50ntpd
-rwxr-xr-x 1 root root 1029 2009-01-14 04:18 55NetworkManager
-rwxr-xr-x 1 root root 335 2009-01-14 04:18 75modules
-rwxr-xr-x 1 root root 391 2009-01-14 04:18 90chvt
-rwxr-xr-x 1 root root 419 2009-01-14 04:18 90clock
-rwxr-xr-x 1 root root 1098 2009-01-14 04:18 94cpufreq
-rwxr-xr-x 1 root root 788 2008-09-03 00:38 95anacron
-rwxr-xr-x 1 root root 297 2009-01-14 04:18 95led
-rwxr-xr-x 1 root root 341 2008-10-24 07:40 96laptop-mode
-rwxr-xr-x 1 root root 2286 2009-01-14 04:18 98smart-kernel-video
-rwxr-xr-x 1 root root 5629 2009-01-14 04:18 99video

I tested this by commenting out the "rm -f" line and confirming that the file was never written to /var/lib/pm-utils.

I've attached a patch to fix this.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: pm-utils 1.2.2.1-0ubuntu2
PackageArchitecture: all
ProcEnviron:
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: pm-utils
Uname: Linux 2.6.28-4-generic x86_64

Tags: apport-bug

Related branches

Revision history for this message
Matt Zimmerman (mdz) wrote :
Changed in pm-utils:
assignee: nobody → apw
Andy Whitcroft (apw)
Changed in pm-utils:
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pm-utils - 1.2.2.1-0ubuntu3

---------------
pm-utils (1.2.2.1-0ubuntu3) jaunty; urgency=low

  * debian/rules: Make 000record script executable, thanks Matt
    Zimmerman! (LP: #318267)

 -- Martin Pitt <email address hidden> Mon, 19 Jan 2009 09:40:32 +0100

Changed in pm-utils:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.