Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 49051 Details for
Bug 66774
net-misc/rdist noexec option broken-- looks for a.out, not ELF binaries
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix insecure mktemp use; put it in ${FILESDIR}/rdist_mkstemp.patch
rdist_mkstemp.patch (text/plain), 824 bytes, created by
splite
on 2005-01-20 10:11:39 UTC
(
hide
)
Description:
patch to fix insecure mktemp use; put it in ${FILESDIR}/rdist_mkstemp.patch
Filename:
MIME Type:
Creator:
splite
Created:
2005-01-20 10:11:39 UTC
Size:
824 bytes
patch
obsolete
>--- src/message.c.orig 1998-11-09 23:13:30.000000000 -0500 >+++ src/message.c 2005-01-20 11:39:48.156866817 -0500 >@@ -455,6 +455,8 @@ > int flags; > char *msgbuf; > { >+ int fd; >+ > if (IS_ON(flags, MT_DEBUG)) > return; > >@@ -475,10 +477,12 @@ > (void) sprintf(tempfile, "%s/%s", cp, _RDIST_TMP); > > msgfac->mf_filename = tempfile; >- (void) mktemp(msgfac->mf_filename); >- if ((msgfac->mf_fptr = fopen(msgfac->mf_filename, "w"))==NULL) >+ if ((fd = mkstemp(msgfac->mf_filename)) == -1) > fatalerr("Cannot open notify file for writing: %s: %s.", > msgfac->mf_filename, SYSERR); >+ if ((msgfac->mf_fptr = fdopen(fd, "w")) == NULL) >+ fatalerr("Cannot associate stream with file %s: %s.", >+ msgfac->mf_filename, SYSERR); > debugmsg(DM_MISC, "Created notify temp file '%s'", > msgfac->mf_filename); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 66774
:
41367
|
49049
| 49051