Sync with OpenBSD:* Instead of calling out mkdir -p, reuse code from mkdir(1).* Use calloc() to avoid malloc(n * m) overflows.* Add detailed SYNOPSIS to the manual page, sort options and add
Sync with OpenBSD:* Instead of calling out mkdir -p, reuse code from mkdir(1).* Use calloc() to avoid malloc(n * m) overflows.* Add detailed SYNOPSIS to the manual page, sort options and add missing arguments.* Various cleanups.
show more ...
Pull WARNS6 into usr.bin/Makefile.inc.Most of usr.bin is marked as WARNS6, so add exceptions in individualMakefiles. Also, remove any warning flags from CFLAGS in those Makefiles.
Remove unnecessary .Nm arguments.
Introduce a new variable to hold the size of buf.
Improve portability of patch(1):- basename(3) and dirname(3) can either return a pointer to static storage (like on all BSDs) or modify the argument (like on Linux). strdup the argument to suppo
Improve portability of patch(1):- basename(3) and dirname(3) can either return a pointer to static storage (like on all BSDs) or modify the argument (like on Linux). strdup the argument to support both.- fix argument range of ctype macros.
Make patch break hardlinks even if not making backups.
make zero prefix or suffix tell patch not to produce backups at all
Take back last commit. It's about normal vs. context diff, notcontext vs. unified (as i was wrongly assuming). Apologies.
Remove false statement. Rejected hunks will come out in whatever formatthe original patch was in. OpenBSD seems to have missed that.
Make us bootstrap on FreeBSD-6.x. Joerg seemed to fix it before, butonly make got -DBOOTSTRAPPING passed, not CFLAGS.Reported-by: Robert Sebastian Gerus <arachnist@gmail.com>
Use system version of getopt_long and basename for the bootstrapping tools.
Update OpenBSD tags to reflect which revisions we are synced with.
Messed up the man page in my previous commit. Now all is well again.
- Take back the commit from Oct. 1, 2004 since FreeBSD has changed their Mk/bsd.port.mk in the meantime to use the --suffix option.- Sync with OpenBSD, which means the reject file is written in u
- Take back the commit from Oct. 1, 2004 since FreeBSD has changed their Mk/bsd.port.mk in the meantime to use the --suffix option.- Sync with OpenBSD, which means the reject file is written in unified format now if the original diff was unified.- Perform some minor cleanup.
Make a DFly buildworld work on a FreeBSD-4.x system again by fixingassumptions made by the new patch code during the buildworld/bootstrapbuild stage. + slip the DragonFly_Stable tag for the fix.
Make a DFly buildworld work on a FreeBSD-4.x system again by fixingassumptions made by the new patch code during the buildworld/bootstrapbuild stage. + slip the DragonFly_Stable tag for the fix.Work-by: Joerg Sonnenberger and Matt Dillon
Make patch's -b option match the old patch's -b option, at least for now,so ports don't break so badly.Patch-by: Sascha Wildner <saw@online.de>
Make the BSD patch WARNS=6 clean- constify string operations if possible- rename some variables to avoid namespace clashes- don't cast the signal functions to sig_t), it's unnecessarySubmitted-b
Make the BSD patch WARNS=6 clean- constify string operations if possible- rename some variables to avoid namespace clashes- don't cast the signal functions to sig_t), it's unnecessarySubmitted-by: Sascha Wildner <saw@online.de>Instead of i_ptr[++iline][0] = '\0', I've used a special empty char arrayinstead. I'm not sure if i_ptr[++iline] points to a valid memory locationunder all circumstances and this is a safer bet.
Add GPL-free patch. This is the extended version of Larry Wall's originalpatch.Obtained-from: OpenBSDSubmitted-by: Sascha Wildner <saw@online.de>
12