From owner-freebsd-bugs Mon Oct 21 04:00:03 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA06685 for bugs-outgoing; Mon, 21 Oct 1996 04:00:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA06679; Mon, 21 Oct 1996 04:00:02 -0700 (PDT) Resent-Date: Mon, 21 Oct 1996 04:00:02 -0700 (PDT) Resent-Message-Id: <199610211100.EAA06679@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, xaa@stack.urc.tue.nl Received: from terra.stack.urc.tue.nl (terra.stack.urc.tue.nl [131.155.140.128]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA06402 for ; Mon, 21 Oct 1996 03:54:50 -0700 (PDT) Received: from alterego.stack.urc.tue.nl (alterego.stack.urc.tue.nl [131.155.141.160]) by terra.stack.urc.tue.nl (8.8.2) with ESMTP id MAA27079 for ; Mon, 21 Oct 1996 12:54:17 +0200 (MET DST) Received: (from xaa@localhost) by alterego.stack.urc.tue.nl (8.8.2/8.8.0) id MAA09501; Mon, 21 Oct 1996 12:54:29 +0200 (MET DST) Message-Id: <199610211054.MAA09501@alterego.stack.urc.tue.nl> Date: Mon, 21 Oct 1996 12:54:29 +0200 (MET DST) From: xaa@stack.urc.tue.nl (Mark Huizer) Reply-To: xaa@stack.urc.tue.nl To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/1857: opendir(dirname) thrashes const char *dirname ? Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1857 >Category: misc >Synopsis: paramater of opendir gets thrashed >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 21 04:00:01 PDT 1996 >Last-Modified: >Originator: Mark Huizer >Organization: M.C.G.V. Stack >Release: FreeBSD 2.1.5-STABLE i386 >Environment: Coffee and a nice sandwich? >Description: char *dirname; DIR *dir; printf("%s\n",dirname); dir=opendir(dirname); printf("%s\n",dirname); gives: /var/spool/news/stack/announce /var/spool/news/stack/announ^O^B >How-To-Repeat: See code above >Fix: Well... it works ok on my current machine... >Audit-Trail: >Unformatted: