Subject: pkg/13959: Cleanup use of mktemp(3) in zip(1) package
To: SEND-PR <gnats-bugs@gnats.netbsd.org>
From: Don Yuniskis <auryn@gci-net.com>
List: netbsd-bugs
Date: 09/15/2001 14:33:28
>Number:         13959
>Category:       pkg
>Synopsis:       zip(1) package uses mktemp(3)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 15 14:39:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Don Yuniskis
>Release:        NetBSD 1.5.1
>Organization:
 Don Yuniskis
>Environment:
System: NetBSD Itsy.Bitsy.Micro 1.5.1 NetBSD 1.5.1 (GENERIC) #56: Mon Jul 2
15:54:23 CEST 2001 he@nsa.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC
i386


>Description:
 Compiler (linkage editor?) warning due to use of mktemp(3)
>How-To-Repeat:
 Build package
>Fix:
 Apply patch


*** fileio.c.old Wed Sep 12 12:07:44 2001
--- fileio.c Wed Sep 12 12:09:56 2001
***************
*** 859,865 ****
    }
  #else
    strcat(t, "ziXXXXXX"); /* must use lowercase for Linux dos file system
*/
!   return mktemp(t);
  #endif /* NO_MKTEMP */
  #endif /* TANDEM */
  #endif /* CMS_MVS */
--- 859,866 ----
    }
  #else
    strcat(t, "ziXXXXXX"); /* must use lowercase for Linux dos file system
*/
!   mkstemp(t);
!   return t;
  #endif /* NO_MKTEMP */
  #endif /* TANDEM */
  #endif /* CMS_MVS */


>Release-Note:
>Audit-Trail:
>Unformatted:
 X-send-pr-version: 3.95