Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/distrib/utils/sysinst/Attic/checkrc.c,v rcsdiff: /ftp/cvs/cvsroot/src/distrib/utils/sysinst/Attic/checkrc.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- src/distrib/utils/sysinst/Attic/checkrc.c 2012/04/06 23:48:53 1.1 +++ src/distrib/utils/sysinst/Attic/checkrc.c 2012/05/15 15:50:58 1.2 @@ -1,4 +1,4 @@ -/* $NetBSD: checkrc.c,v 1.1 2012/04/06 23:48:53 riz Exp $ */ +/* $NetBSD: checkrc.c,v 1.2 2012/05/15 15:50:58 jdf Exp $ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. @@ -84,8 +84,12 @@ check(const char *varname, int filetoche create_script(varname, filetocheck); - collect(T_OUTPUT, &buf, "chroot %s /bin/sh %s 2>&1", target_prefix(), - RC_CHECK_SCRIPT); + if (target_already_root()) + collect(T_OUTPUT, &buf, "/bin/sh %s 2>&1", RC_CHECK_SCRIPT); + else + collect(T_OUTPUT, &buf, "chroot %s /bin/sh %s 2>&1", + target_prefix(), RC_CHECK_SCRIPT); + unlink(target_expand(RC_CHECK_SCRIPT));