user/5151: apm errormessage

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

user/5151: apm errormessage

Tobias Ulmer
>Number:         5151
>Category:       user
>Synopsis:       apm errormessage
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 10 14:40:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Tobias Ulmer
>Release:        OpenBSD uran.tmux.lan 3.9 GENERIC#866 i386
>Organization:
net
>Environment:
>Description:
        apm -H / -L / -A without root privileges results in
apm: apmd not running; cannot change performance adjustment mode

while apmd is running ;-)
>How-To-Repeat:
>Fix:
--- usr.sbin/apm/apm.c.orig     Sat Jun 10 16:17:20 2006
+++ usr.sbin/apm/apm.c  Sat Jun 10 16:21:59 2006
@@ -248,8 +248,8 @@
        case SETPERF_AUTO:
        case SETPERF_COOL:
                if (fd == -1)
-                       errx(1, "apmd not running; "
-                           "cannot change performance adjustment mode");
+                       err(1, "cannot connect to apmd");
+
                goto balony;
        case NONE:
                action = GETSTATUS;


>Release-Note:
>Audit-Trail:
>Unformatted: