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
F115224895: D7644.id19690.diff
Mon, Apr 21, 2:40 PM
F115215929: D7644.id19690.diff
Mon, Apr 21, 12:38 PM
Unknown Object (File)
Sun, Apr 20, 8:17 AM
Unknown Object (File)
Sat, Apr 19, 5:57 AM
Unknown Object (File)
Sun, Apr 13, 6:33 AM
Unknown Object (File)
Fri, Apr 11, 11:10 AM
Unknown Object (File)
Tue, Apr 8, 1:57 AM
Unknown Object (File)
Mar 19 2025, 2:23 AM
Subscribers
None

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

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
156

bonus whitespace fix

Some comments.

usr.bin/bsdiff/bspatch/bspatch.c
58

Blank space needed.

133

This can fail right?

134

dirname, can return NULL.

137

This can fail.

usr.bin/bsdiff/bspatch/bspatch.c
136

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

usr.bin/bsdiff/bspatch/bspatch.c
136

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.