Skip to content

Commit

Permalink
app-mobilephone/sobexsrv: init.d fixes
Browse files Browse the repository at this point in the history
- double quote ${CHROOT} variable
- start-stop-daemon: migrate from --chuid to --user

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Andrew Savchenko <[email protected]>
  • Loading branch information
bircoph committed Sep 6, 2020
1 parent e9da70d commit a6770b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app-mobilephone/sobexsrv/files/init.d_sobexsrv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

depend() {
Expand All @@ -17,7 +17,7 @@ check_config() {
return 1
fi

if [ ${CHROOT} = "yes" ] ; then
if [ "${CHROOT}" = "yes" ] ; then
if [ ! -u /usr/bin/sobexsrv ] ; then
eerror "The \$CHROOT option requires /usr/bin/sobexsrv to be suid root!"
return 1
Expand Down Expand Up @@ -47,7 +47,7 @@ start() {

OPTIONS="-I -r ${INBOX} ${OPTIONS} ${SOBEXSRV_OPT}"

start-stop-daemon --chuid ${USER}:${GROUP} --start --quiet --exec /usr/bin/sobexsrv -- $OPTIONS
start-stop-daemon --user ${USER}:${GROUP} --start --quiet --exec /usr/bin/sobexsrv -- $OPTIONS
eend $?
}

Expand Down

0 comments on commit a6770b0

Please sign in to comment.