Fix rc script when root's shell does not include /usr/local/bin in $PATH

This is the blanket-approved safe part of PR 250925,
as partial MFH r554447.

Let's give the pidfile changes in 6.4.13 some time to mature before
MFH'ing them.

PR:		250691
PR:		250925 (partial MFH)
Submitted by:	Corey Halpin (maintainer)
Approved by:	ports-secteam@ (blanket for single-line tested fixes)
This commit is contained in:
Matthias Andree 2020-11-08 11:18:17 +00:00
parent 0bbfde3a45
commit c3a13f3bab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q4/; revision=554449
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
PORTNAME?= fetchmail
DISTVERSION= 6.4.12
PORTREVISION?= 3
PORTREVISION?= 4
CATEGORIES= mail
# The next line is inherited by the fetchmailconf slave port,
# do NOT replace fetchmail by ${PORTNAME}

View File

@ -116,7 +116,7 @@ fetchmail_awaken()
# query a value from the fetchmail config file, value specified in first argument
fetchmail_dump_config()
{
su -m ${fetchmail_user} -c "/bin/sh -c 'fetchmail -f ${fetchmail_config} --configdump'" | fgrep $1 | cut -d: -f2
su -m ${fetchmail_user} -c "/bin/sh -c '${command} -f ${fetchmail_config} --configdump'" | fgrep $1 | cut -d: -f2
}
# arguments: