Bug 88633 - [PATCH] ftp/pftpd: s/mktemp()/mkstemp()/g
Summary: [PATCH] ftp/pftpd: s/mktemp()/mkstemp()/g
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-08 01:30 UTC by chinsan
Modified: 2005-11-08 02:48 UTC (History)
0 users

See Also:


Attachments
pftpd.diff (358 bytes, patch)
2005-11-08 01:30 UTC, chinsan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chinsan 2005-11-08 01:30:10 UTC
use mkstemp() instead of mktemp()

How-To-Repeat: # cd /usr/ports/ftp/pftpd ; make install clean
[snip]
cc -pthread -DHAVE_CONFIG_H -DPATH_PREFIX=\"/usr/local\" -DPATH_SYSCONFDIR=\"/usr/local/etc\" -DPATH_LOCALSTATEDIR=\"/usr/local/var\" -DPATH_DATADIR=\"/usr/local/share\" -O -pipe -march=pentiumpro -I.. -O -pipe -march=pentiumpro  -DHAVE_CONFIG_H -o pftpd main.o request.o conf.o version.o  ftpcmd.o ftplist.o ftpdata.o path.o  xferlog.o rpa.o socket.o  ../plib/libplib.a -pthread  -pthread  -lcompat
rpa.o: In function pa_unix_open':
rpa.o(.text+0x96): warning: mktemp() possibly used unsafely; consider using mkstemp()
Comment 1 Marcus Alves Grando freebsd_committer 2005-11-08 02:48:24 UTC
State Changed
From-To: open->closed

Committed. Thanks!