Page MenuHomeFreeBSD

bspatch: clean up output file in the case of error
ClosedPublic

Authored by emaste on Aug 25 2016, 6:47 PM.
Tags
None
Referenced Files
F103265412: D7644.id19693.diff
Fri, Nov 22, 8:03 PM
Unknown Object (File)
Sun, Nov 10, 8:03 AM
Unknown Object (File)
Fri, Nov 8, 10:04 AM
Unknown Object (File)
Oct 23 2024, 2:58 PM
Unknown Object (File)
Sep 28 2024, 10:58 PM
Unknown Object (File)
Sep 27 2024, 3:24 PM
Unknown Object (File)
Sep 26 2024, 9:58 PM
Unknown Object (File)
Sep 24 2024, 9:15 AM
Subscribers
None

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste retitled this revision from to bspatch: clean up output file in the case of error.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added reviewers: allanjude, oshogbo, cperciva, delphij.

unlinkat is POSIX so no need to use it only in the #ifdef CAPSICUM case

usr.bin/bsdiff/bspatch/bspatch.c
153 ↗(On Diff #19686)

bonus whitespace fix

Some comments.

usr.bin/bsdiff/bspatch/bspatch.c
58 ↗(On Diff #19686)

Blank space needed.

132 ↗(On Diff #19686)

This can fail right?

133 ↗(On Diff #19686)

dirname, can return NULL.

136 ↗(On Diff #19686)

This can fail.

usr.bin/bsdiff/bspatch/bspatch.c
136 ↗(On Diff #19690)

namebuf can be NULL. Should we print argv[2]?

usr.bin/bsdiff/bspatch/bspatch.c
136 ↗(On Diff #19690)

Sorry for being PITA but namebuf still can be NULL, in this err msg.

oshogbo edited edge metadata.

Thank you for doing this.

This revision is now accepted and ready to land.Aug 25 2016, 8:48 PM
This revision was automatically updated to reflect the committed changes.