aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bootparamd
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line bare tagWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-166-6/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-163-6/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-072-2/+2
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-192-2/+0
|
* Fix too small hostname buffer in bootparamdDimitry Andric2022-02-061-1/+1
| | | | | | | | | | | | | | This fixes the following warning from clang 14: usr.sbin/bootparamd/bootparamd/bootparamd.c:204:32: error: 'fscanf' may overflow; destination buffer in argument 3 has size 255, but the corresponding specifier may require size 256 [-Werror,-Wfortify-source] The MAX_MACHINE_NAME macro indicates the maximum number of bytes in a machine name, but it does not include the NUL terminator required for scanf. MFC after: 3 days
* bootparamd: Add missing __unused mark.Yoshihiro Takahashi2021-01-021-2/+2
| | | | | | | | | e03764d931d820185a019334259b18df2e3f6b6c did not catch all unused variables. Submitted by: otis MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D27894
* bootparamd: Fix several warnings and increase warn level to 6.Yoshihiro Takahashi2021-01-024-69/+59
| | | | | | | | | | | | | - Increase WARNS to 6. - Except -Wcast-align and -Wincompatible-pointer-types-discards-qualifiers checks. - Use ANSI C prototype. - Statically variables and functions. - Add extern declaration for global variables. - Rename local variables to resolve shadow warnings. PR: 71667 MFC after: 2 weeks
* 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