NetBSD Problem Report #10191
Received: (qmail 13361 invoked from network); 24 May 2000 10:36:04 -0000
Message-Id: <200005241036.DAA15696@nbwww.isc.org>
Date: Wed, 24 May 2000 03:36:04 -0700 (PDT)
From: rearnsha@arm.com
Reply-To: rearnsha@arm.com
To: gnats-bugs@gnats.netbsd.org
Subject: bfd-crunchide creates temporary files in the wrong directory
X-Send-Pr-Version: www-1.0
>Number: 10191
>Category: pkg
>Synopsis: bfd-crunchide creates temporary files in the wrong directory
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 24 10:37:00 +0000 2000
>Closed-Date: Thu May 03 15:32:34 +0000 2001
>Last-Modified: Thu May 03 15:32:34 +0000 2001
>Originator: Richard Earnshaw
>Release: NetBSD-current
>Organization:
ARM
>Environment:
port-arm32 1.4X (I think)
>Description:
pkgsrc/cross/bfd-crunchide, which is needed for building cross distributions of NetBSD,
uses tempnam(3) to create a temporary in the current directory, so that it can
rename(2) it over the original file after the mangling has been finished.
tempnam(3) however, will ignore the suggested directory if TMPDIR is set
in the environment, so the subsequent rename(2) call can fail because
the the two files are not on the same device.
>How-To-Repeat:
setenv TMPDIR /tmp
cd some-dir-on-another-disk
crunchgen <some-file>
--> rename: cross-device link
>Fix:
Unset the environment variable (or set it to ".") before calling
tempnam(3)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: wiz
State-Changed-When: Fri Mar 23 05:36:55 PST 2001
State-Changed-Why:
Added a patch by Dieter Baron that should fix this -- please try
version 1.1 of bfd-crunchide, and if it works, close this PR. Thanks.
State-Changed-From-To: feedback->closed
State-Changed-By: wiz
State-Changed-When: Thu May 3 08:32:26 PDT 2001
State-Changed-Why:
Feedback timeout.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.