aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bootparamd
Commit message (Collapse)AuthorAgeFilesLines
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-312-2/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Don't leak bpf on early return when YP isn't defined (NIS support)Enji Cooper2017-08-171-0/+2
| | | | | | | | MFC after: 1 week Reported by: cppcheck Notes: svn path=/head/; revision=322636
* Fix WARNSEnji Cooper2017-08-171-12/+5
| | | | | | | | | | | | | | - Remove ad hoc inet_ntoa prototype declaration; it's already handled by the included headers. - De-K&Rify the function prototypes for eachres_whoami(..), eachres_getfile(..), and main(..). MFC after: 1 week PR: 71667 Tested with: clang (5.0), gcc (4.2.1, 5) Notes: svn path=/head/; revision=322635
* Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP.Bryan Drewery2017-06-192-2/+2
| | | | | | | | | | | | | | Since buildenv exports SYSROOT all of these uses will now look in WORLDTMP by default. sys/boot/efi/loader/Makefile A LIBSTAND hack is no longer required for buildenv. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=320122
* Fix uninitialized variable in bootparamd.cAlan Somers2017-05-311-0/+1
| | | | | | | | | | | | | Restore line that was accidentally deleted in change 318790 Reported by: Coverity CID: 1375855 MFC after: 1 week X-MFC-With: 318790 Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=319336
* Fix a buffer overflow in bootparamd(8)Alan Somers2017-05-241-3/+7
| | | | | | | | | | | | | | | If /etc/bootparams contains a line with an excessively long pathname, and a client asks for that path, then bootparamd will overflow a buffer and crash while parsing that line. This is not remotely exploitable since it requires a malformed /etc/bootparams file. Reported by: Coverity CID: 1305954 MFC after: 1 week Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=318790
* DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-242-22/+0
| | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* Fix some trivial warnings with bootparamd/main.cEnji Cooper2015-11-101-5/+2
| | | | | | | | | | | | | - Convert K&R to something a bit less ancient - Remove an incorrect, duplicate prototype for bootparamprog_1(..) MFC after: 1 week PR: 71667 Submitted by: bcran Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290645
* Add META_MODE support.Simon J. Gerraty2015-06-132-0/+64
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-082-4/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge head from 7/28Simon J. Gerraty2014-08-191-1/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=270164
| * Updated dependenciesSimon J. Gerraty2014-05-162-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-102-0/+4
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * \ Merge headSimon J. Gerraty2014-04-283-3/+3
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ Merge from headSimon J. Gerraty2013-09-051-1/+1
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | | Updated dependenciesSimon J. Gerraty2013-03-112-0/+3
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-162-4/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-222-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* | | NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-04-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. Notes: svn path=/head/; revision=264400
* | | Use INADDR_NONE instead of -1 to check inet_addr() result.Kevin Lo2013-10-152-2/+2
| |/ |/| | | | | | | | | | | Reviewed by: glebius Notes: svn path=/head/; revision=256506
* | mdoc sweep.Joel Dahl2013-05-121-1/+1
|/ | | | Notes: svn path=/head/; revision=250582
* mdoc: terminate quoted strings.Joel Dahl2012-03-261-1/+1
| | | | | | | Reviewed by: brueffer Notes: svn path=/head/; revision=233510
* Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessorDimitry Andric2012-02-072-6/+6
| | | | | | | | | set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp. MFC after: 1 week Notes: svn path=/head/; revision=231118
* Fix warning when compiling with gcc46:Eitan Adler2012-01-201-3/+2
| | | | | | | | | | error: variable 'clnt_stat' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days Notes: svn path=/head/; revision=230361
* Replace index() and rindex() calls with strchr() and strrchr().Ed Schouten2012-01-031-2/+2
| | | | | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls. Notes: svn path=/head/; revision=229403
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-301-15/+1
| | | | Notes: svn path=/head/; revision=228990
* Unbreak bootparamd when setting WITHOUT_NIS.Ed Schouten2010-01-041-2/+2
| | | | | | | Submitted by: bf1783 googlemail com Notes: svn path=/head/; revision=201521
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | Notes: svn path=/head/; revision=201390
* Remove a useless cast.Olivier Houchard2008-08-021-1/+1
| | | | | | | Spotted out by: stefanf Notes: svn path=/head/; revision=181143
* Char is unsigned on arm, so is not suitable to store the return value ofOlivier Houchard2008-08-011-2/+2
| | | | | | | | | | getopt(). Use an int instead. Submitted by: Matthew Luckie MFC after: 3 days Notes: svn path=/head/; revision=181125
* Fix bootparamd on 64 bit platforms - at least amd64 was broken due to theRink Springer2008-01-302-4/+4
| | | | | | | | | | | | | code believing long == 64 bits and using it to store/compare IPv4 addresses. PR: bin/112163 Submitted by: Tyler Spivey <tspivey@pcdesk.net> Reviewed by: imp Approved by: imp (mentor) MFC after: 1 week Notes: svn path=/head/; revision=175823
* Cleanup of userland __P useKevin Lo2007-11-073-6/+6
| | | | Notes: svn path=/head/; revision=173412
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-03-171-1/+3
| | | | | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine) Notes: svn path=/head/; revision=156813
* Pass -C to rpcgen.Stefan Farfeleder2005-02-091-3/+3
| | | | Notes: svn path=/head/; revision=141569
* Sort sections.Ruslan Ermilov2005-01-181-3/+3
| | | | Notes: svn path=/head/; revision=140442
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-211-1/+1
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.Bjoern A. Zeeb2004-11-132-0/+17
| | | | | | | | | | | | | | If turned on no NIS support and related programs will be built. Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il> PR: bin/68303 No objections: des, gshapiro, nectar Reviewed by: ru Approved by: rwatson (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=137675
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* - Don't use argv[i] when i is uninitialised.Stefan Farfeleder2004-06-081-3/+2
| | | | | | | | | | - Cast isdigit's argument to unsigned char. - Remove the now unused variable i. Approved by: das (mentor) Notes: svn path=/head/; revision=130243
* Make this compile cleanly. Switch to using rpcgen to generatePeter Wemm2003-10-262-5/+7
| | | | | | | | code that can be compiled on an ansi-C compiler, so that it puts the xdrproc_t casts in. This also implies a slight function name change. Notes: svn path=/head/; revision=121554
* fix problem with uninitalized ptr (from PR)John-Mark Gurney2003-06-201-8/+13
| | | | | | | | | | other minor clean up. PR: bin/2785 Submitted by: mpp Notes: svn path=/head/; revision=116598
* The .Nm utilityPhilippe Charnier2002-07-141-2/+3
| | | | Notes: svn path=/head/; revision=99968
* can not -> cannotSheldon Hearn2001-08-081-1/+1
| | | | Notes: svn path=/head/; revision=81298
* s/adress/address/Kris Kennaway2001-07-231-2/+2
| | | | | | | | Inspired by: OpenBSD MFC After: 1 week Notes: svn path=/head/; revision=80203
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-204-2/+8
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* Remove whitespace at EOL.Dima Dorfman2001-07-151-3/+3
| | | | Notes: svn path=/head/; revision=79755
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-2/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816