freebsd-ports/net-mgmt/bigsister/files/patch-tools::bb_start.pl
Bruce M Simpson d7c7a482a8 Numerous changes:
- Explicitly USE_GMAKE.
 - Add a switch WITH_UCDSNMP to only depend on p5-SNMP if net-snmp4 is
   preferred over net-snmp, as net-snmp provides SNMP.pm (unless compiled
   WITHOUT_PERL).
 - Add some files to pkg-plist as makefile install targets are lazy (i.e.
   they use wildcards) to avoid package deinstall failures.
 - Add some needed FreeBSD patches.

Submitted by:	Hiroki Sato (patches)
2004-05-20 14:10:13 +00:00

20 lines
497 B
Perl

--- tools/bb_start.pl.orig Mon Aug 11 21:29:38 2003
+++ tools/bb_start.pl Sat Feb 28 17:28:29 2004
@@ -161,7 +161,7 @@
sub proclist {
my @result;
- foreach my $cmd ( "ps cax", "ps -e", "ps -ef" ) {
+ foreach my $cmd ( "/bin/ps ax" ) {
open( CMD, "$cmd 2>/dev/null|" );
@result = ();
while( <CMD> ) {
@@ -197,7 +197,7 @@
exec( $cmd );
}
else {
- exec( "su", "-", "$user", "-c", $cmd );
+ exec( "/usr/bin/su", "-m", "$user", "-c", $cmd );
}
exit(1);
}