[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

user/1888: rup is fooled by broken rstatd on Solaris




>Number:         1888
>Category:       user
>Synopsis:       rup is fooled by broken rstatd on Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 18 16:00:02 MDT 2001
>Last-Modified:
>Originator:     Kenneth Stailey
>Organization:
net
>Release:        rup 1.11
>Environment:
	
	System      : OpenBSD 2.5
	Architecture: OpenBSD.i386
	Machine     : i386
>Description:
	sometimes Solaris reports boottime > curtime, no idea why
>How-To-Repeat:
	rup dismqrt
	dismqrt             up 49550 day   2:11,  load average: 0.20 0.21 0.20

>Fix:
	
--- rup.c-1.11  Mon Jun 18 17:50:13 2001
+++ rup.c       Mon Jun 18 17:50:39 2001
@@ -205,6 +205,8 @@
        host_time = *tmp_time;
 
        host_stat->curtime.tv_sec -= host_stat->boottime.tv_sec;
+       if (host_stat->curtime.tv_sec < 0)
+               host_stat->curtime.tv_sec = 0;
 
        ups=host_stat->curtime.tv_sec;
        upd=ups/(3600*24);


$ rup dismqrt
dismqrt.disclosure.com      up                    load average: 0.27 0.22 0.20

>Audit-Trail:
>Unformatted: