FreeBSD Bugzilla – Attachment 239138 Details for
Bug 268661
astro/accrete: segfaults when it attempts to write to file without permissions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
git diff of display.c does null check before writing to fp
astro_accrete-1.0_1.diff (text/plain), 611 bytes, created by
Matthew Holevinski
on 2022-12-31 01:43:07 UTC
(
hide
)
Description:
git diff of display.c does null check before writing to fp
Filename:
MIME Type:
Creator:
Matthew Holevinski
Created:
2022-12-31 01:43:07 UTC
Size:
611 bytes
patch
obsolete
>diff --git a/astro/accrete/files/patch-display.c b/astro/accrete/files/patch-display.c >new file mode 100644 >index 000000000000..73a2e4174462 >--- /dev/null >+++ b/astro/accrete/files/patch-display.c >@@ -0,0 +1,14 @@ >+--- display.c.orig 2022-12-31 01:22:36 UTC >++++ display.c >+@@ -8,6 +8,11 @@ display_system (void) >+ >+ FILE *f; >+ f = fopen("New.System", "w"); >++ if (f == NULL) >++ { >++ perror("New.System"); >++ exit(1); >++ } >+ >+ fprintf(f," SYSTEM CHARACTERISTICS\n"); >+ fprintf(f,"Mass of central star: %6.3f solar masses\n", stellar_mass_ratio);
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 268661
: 239138