Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 44199 Details for
Bug 71595
dev-util/cscope: Race condition on temporary file
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cscope-tempfile.patch
cscope-tempfile.patch (text/plain), 1.03 KB, created by
Luke Macken (RETIRED)
on 2004-11-17 19:34:13 UTC
(
hide
)
Description:
cscope-tempfile.patch
Filename:
MIME Type:
Creator:
Luke Macken (RETIRED)
Created:
2004-11-17 19:34:13 UTC
Size:
1.03 KB
patch
obsolete
>diff -Naurp src/build.c src/build.c >--- src/build.c 2003-03-05 11:43:59.000000000 +0100 >+++ src/build.c 2004-11-17 15:01:01.000000000 +0100 >@@ -333,7 +333,7 @@ build(void) > (void) fprintf(stderr, "cscope: cannot open file %s\n", reffile); > myexit(1); > } >- if (invertedindex == YES && (postings = myfopen(temp1, "wb")) == NULL) { >+ if (invertedindex == YES && (postings = myfopen(temp1, "w+xb")) == NULL) { > cannotwrite(temp1); > cannotindex(); > } >diff -Naurp src_old/display.c src/display.c >--- src/display.c 2003-09-04 17:54:02.000000000 +0200 >+++ src/display.c 2004-11-17 15:01:01.000000000 +0100 >@@ -754,13 +754,13 @@ BOOL > writerefsfound(void) > { > if (refsfound == NULL) { >- if ((refsfound = myfopen(temp1, "wb")) == NULL) { >+ if ((refsfound = myfopen(temp1, "w+xb")) == NULL) { > cannotopen(temp1); > return(NO); > } > } else { > (void) fclose(refsfound); >- if ( (refsfound = myfopen(temp1, "wb")) == NULL) { >+ if ( (refsfound = myfopen(temp1, "w+xb")) == NULL) { > postmsg("Cannot reopen temporary file"); > return(NO); > }
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 71595
: 44199 |
44571
|
44698
|
45208
|
45342
|
45463