Skip site navigation (1)Skip section navigation (2)
Date:      28 Aug 2009 10:30:49 -0300
From:      Renato Botelho <garga@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        brix@FreeBSD.org
Subject:   ports/138268: [PATCH] irc/bitlbee: Use -u ${user} option instead of su on rc.d script
Message-ID:  <20090828133049.78852.qmail@botelhor.bplab.local>
Resent-Message-ID: <200908281340.n7SDe4H8096870@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         138268
>Category:       ports
>Synopsis:       [PATCH] irc/bitlbee: Use -u ${user} option instead of su on rc.d script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 28 13:40:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Renato Botelho
>Release:        FreeBSD 9.0-CURRENT i386
>Organization:
FreeBSD.org
>Environment:
System: FreeBSD botelhor.bplab.local 9.0-CURRENT FreeBSD 9.0-CURRENT #83 r196505: Mon Aug 24 09:08:21 BRT
>Description:
Since bitlbee has an option (-u) to choose user to run with, use this option
instead of su -m user

Port maintainer (brix@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- bitlbee-1.2.3_2.patch begins here ---
Index: files/bitlbee.in
===================================================================
RCS file: /home/pcvs/ports/irc/bitlbee/files/bitlbee.in,v
retrieving revision 1.3
diff -u -u -r1.3 bitlbee.in
--- files/bitlbee.in	15 Jul 2009 16:55:43 -0000	1.3
+++ files/bitlbee.in	28 Aug 2009 13:28:49 -0000
@@ -28,7 +28,7 @@
 bitlbee_start()
 {
 	echo "Starting ${name}."
-	su -m ${bitlbee_user} -c "${command} -D -c ${bitlbee_config} ${bitlbee_flags}"
+	${command} -D -u ${bitlbee_user} -c ${bitlbee_config} ${bitlbee_flags}
 }
 
 run_rc_command "$1"
--- bitlbee-1.2.3_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090828133049.78852.qmail>