mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-20 23:54:38 +01:00
Anonymize the "portmap" program to get better compatibility with
rpcbind in -current. Submitted by: Alexander Kabaev <ak03@gte.com>
This commit is contained in:
parent
7022a21abd
commit
5271c18857
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98486
@ -35,8 +35,10 @@ amd_precmd()
|
||||
if ! checkyesno nfs_client_enable ; then
|
||||
force_depend nfsclient || return 1
|
||||
fi
|
||||
if [ -z "`check_process rpcbind`" \
|
||||
-a ! `checkyesno portmap_enable` ]; then
|
||||
|
||||
if ! checkyesno portmap_enable && \
|
||||
[ -z "`check_process ${portmap_program}`" ]
|
||||
then
|
||||
force_depend rpcbind || return 1
|
||||
fi
|
||||
|
||||
|
@ -33,7 +33,10 @@ mountd_precmd()
|
||||
if ! sysctl vfs.nfsrv >/dev/null 2>&1; then
|
||||
force_depend nfsserver || return 1
|
||||
fi
|
||||
if [ -z "`check_process rpcbind`" -a ! `checkyesno portmap_enable` ]; then
|
||||
|
||||
if ! checkyesno portmap_enable && \
|
||||
[ -z "`check_process ${portmap_program}`" ]
|
||||
then
|
||||
force_depend rpcbind || return 1
|
||||
fi
|
||||
|
||||
|
@ -23,7 +23,6 @@ case `${CMD_OSTYPE}` in
|
||||
FreeBSD)
|
||||
pidfile=
|
||||
rcvar="portmap_enable"
|
||||
command="${portmap_program:-/usr/sbin/${name}}"
|
||||
eval ${name}_flags=\"${portmap_flags}\"
|
||||
;;
|
||||
NetBSD)
|
||||
|
Loading…
Reference in New Issue
Block a user