Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Oct 2009 17:30:02 GMT
From:      Justin Head <ports@encarnate.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/140012: Error in sysutils/heartbeat 2.1.4_3,  find_interface_bsd
Message-ID:  <200910311730.n9VHU2Le003438@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/140012; it has been noted by GNATS.

From: Justin Head <ports@encarnate.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/140012: Error in sysutils/heartbeat 2.1.4_3, 
	find_interface_bsd
Date: Sat, 31 Oct 2009 12:23:27 -0500

 I don't understand why my simple text files can never seem to show
 correctly through FreeBSD's bug tool.  I send attachments just fine to
 everywhere else.
 
 Here is a paste below.
 
 - Justin
 
 ---
 
 --- files/patch-resources-OCF-IPaddr.orig       2009-08-21
 03:55:41.000000000 -0500
 +++ files/patch-resources-OCF-IPaddr    2009-10-31 10:02:44.000000000 -0500
 @@ -41,11 +41,11 @@
  +
  +            while (<STDIN>) {
  +                chomp();
 -+                if ( /^(\w+):\s+flags=/ ) {
 ++                if ( /^(\w+):\sflags=/ ) {
  +                    $if_name = $1;
  +                    $if_status = ( /UP/ ) ? 1 : 0;
  +                }
 -+                if ( /^\s+inet\s+${ip}/ ) {
 ++                if ( /^\tinet\s${ip}\s/ ) {
  +                    if ( $if_status ) {
  +                        print $if_name;
  +                        exit(0)



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