Subject: lib/4058: mkstemp() failure
To: None <gnats-bugs@gnats.netbsd.org>
From: Olaf Schroeder <olaf@digirule.com>
List: netbsd-bugs
Date: 08/29/1997 11:43:08
>Number: 4058
>Category: lib
>Synopsis: mkstemp() failure
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: lib-bug-people (Library Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 29 10:50:01 1997
>Last-Modified:
>Originator: olaf@digirule.com
>Organization:
Digi-Rule Inc.
>Release: Aug 15, 1997
>Environment:
System: NetBSD maggy.digirule.com 1.2G NetBSD 1.2G (MAGGY) #5: Sat Aug 23 15:58:13 MDT 1997 hpeyerl@cleavage:/usr/src/sys/arch/i386/compile/MAGGY i386
>Description:
mktemp() is incorrectly failling on this sample code.
It doesn't return the value it should.
>How-To-Repeat:
#include <unistd.h>
#include <stdio.h>
#include <malloc.h>
main ()
{
char *p = malloc(100);
strcpy(p, "/tmp/tmp.XXX");
puts(mktemp(p));
}
>Fix:
None known.
>Audit-Trail:
>Unformatted: