summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.statd/file.c
Commit message (Collapse)AuthorAgeFilesLines
* Set ai2 to NULL in in find_host() before the loop and after callingtruckman2016-05-161-5/+7
| | | | | | | | | | | | | | | | | | | | | | | freeaddrinfo() on it to indicate that it doesn't point to a valid addrinfo list. This fixes this Coverity issues: 1006368 Uninitialized pointer read 1018506 Double free 1305590 Resource leak that can be triggered in the hp->hostname[0] != '\0' case. Don't treat a character as a boolean. Fix these Coverity issues: 1009293 Unchecked return value from library 1194246 Wrong size argument by tweaking the status file extend code. Reported by: Coverity CID: 1006368, 1018506, 1305590, 1009293, 1194246 Reviewed by: rmacklem Feedback from: hrs MFC after: 1 week Differential Revision: D6398
* Re-implement the client side of rpc.lockd in the kernel. This implementationdfr2008-06-261-0/+30
| | | | | | | | | | | | provides the correct semantics for flock(2) style locks which are used by the lockf(1) command line tool and the pidfile(3) library. It also implements recovery from server restarts and ensures that dirty cache blocks are written to the server before obtaining locks (allowing multiple clients to use file locking to safely share data). Sponsored by: Isilon Systems PR: 94256 MFC after: 2 weeks
* If the mmap() call in rpc.statd fails, rpc.statd prints a warningtruckman2007-08-131-1/+1
| | | | | | | | | | | | message and then dumps core because the subsequent code assumes that mmap() succeeded. Since rpc.statd does not have fallback code to implement the functionality needed to operate on the status file if it is not memory mapped, rpc.statd should use err() to force the process to exit if the mmap() call fails. PR: bin/115430 (mmap() failure previously fixed in statd.c 1.15) Approved by: re (kensmith) MFC after: 1 week
* Deal with xdrproc_t casts. Make these compile cleanly with WARNS=2peter2003-10-261-1/+2
| | | | (but I haven't turned it on)
* make mostly WARNS=4 clean.alfred2002-07-111-1/+1
| | | | constify, mark unsued args, fixup prototypes.
* include stdlib.h for exit(3) prototype.alfred2002-07-111-0/+1
|
* Included in the updated version of tirpc's sm_inter.x Sun added thealfred2001-03-201-23/+2
| | | | | | | | | | | | SM_NOTIFY procedure. Remove our hand-coded one as it was causing world breakage for worlds compiled with NOSHARED=yes because the static linker is a bit less forgiving (or not as broken as) our dynamic linker. Add $FreeBSD$ while I'm here. Pointed out by: bde
* Use err(3). Add usage() and #includes.charnier1997-10-131-13/+7
|
* Sweep through the tree fixing mmap() usage:alex1997-01-161-1/+1
| | | | | | | | | | | | - Use MAP_FAILED instead of the constant -1 to indicate failure (required by POSIX). - Removed flag arguments of '0' (required by POSIX). - Fixed code which expected an error return of 0. - Fixed code which thought any address with the high bit set was an error. - Check for failure where no checks were present. Discussed with: bde
* Import Jan 15 version of Andrew Gordon <andrew.gordon@net-tel.co.uk>'speter1996-02-171-0/+356
rpc.statd. This is apparently fully functional and complete.
OpenPOWER on IntegriCloud