Date: Mon, 21 Oct 1996 12:54:29 +0200 (MET DST) From: xaa@stack.urc.tue.nl (Mark Huizer) To: FreeBSD-gnats-submit@freebsd.org Subject: misc/1857: opendir(dirname) thrashes const char *dirname ? Message-ID: <199610211054.MAA09501@alterego.stack.urc.tue.nl> Resent-Message-ID: <199610211100.EAA06679@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610211054.MAA09501>
