NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/41310: NetBSD 5 savecore does not
The following reply was made to PR kern/41310; it has been noted by GNATS.
From: Hauke Fath <hf%spg.tu-darmstadt.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%NetBSD.org@localhost
Subject: Re: kern/41310: NetBSD 5 savecore does not
Date: Thu, 30 Apr 2009 22:09:42 +0200
At 17:40 Uhr +0000 30.04.2009, Matthias Drochner wrote:
> The "kernel" string in savecore.c can be NULL now. This is fine
> for kvm_openfiles(3), but not for open(2) or as a printf
> argument...
> It was good to drop use of getbootfile(3), but this
> wasn't done correctly.
Nor documented, if I read savecore(8) correctly:
-N Use system as the kernel instead of the default (returned by
getbootfile(3)). Note that getbootfile(3) uses secure_path(3)
to check that kernel file is ``secure'' and will default to
/netbsd if the check fails.
[hf@Gstoder] ~ > fgrep getbootfile /misc/netbsd-5/sbin/savecore/*
/misc/netbsd-5/sbin/savecore/savecore.8:.Xr getbootfile 3 ) .
/misc/netbsd-5/sbin/savecore/savecore.8:.Xr getbootfile 3
[hf@Gstoder] ~ >
--
Home |
Main Index |
Thread Index |
Old Index