Subject: kern/13364: cd9660_mountroot does not call inittodr
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rquinn+11121@sec.sprint.net>
List: netbsd-bugs
Date: 07/03/2001 05:05:35
>Number:         13364
>Category:       kern
>Synopsis:       cd9660_mountroot does not call inittodr
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 03 05:03:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Rob Quinn
>Release:        NetBSD-current/i386
>Organization:
>Environment:
NetBSD strike.XXXX 1.5W NetBSD 1.5W (STRIKE) #59: Tue Jul  3 07:27:28 EDT 2001     rquinn@strike.XXXX:/usr/obj/STRIKE i386

>Description:
Unlike ffs_mountroot, cd9660_vfsops.c:cd9660_mountroot does not
call inittodr(). Booting from a CD causes the clock to appear to reset
to 1970.

>How-To-Repeat:
Make a bootable CD with "root on cd0a type cd9660".
>Fix:
Call inittodr(0) at the end of cd9660_mountroot. Also suggest the fix
in PR#1413, to avoid getting a warning about the "0" argument.

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