-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You may install nfsen-1.3.4 anyway now, as it fixes several other issues from 
1.3.3.

        - Peter

On 7/2/10 17:15, Pleasants, Chip wrote:
> Hi all,
> 
> When applying the patch I get an error at 80. Could someone help me
> determine why the patch isn't getting applied or what I'm doing wrong
> when trying to apply the patch? Also should this patch be applied to the
> working pm file or shold I modify the source and re-install nfsen? Sorry
> for the newbie questions. Below is the output and the rejects file. 
> 
> Thanks,
> Chip
> 
> 
> 
> 
> [r...@server-1 nfsen]# patch  --verbose -p1 -i /home/user/NfSenRC.patch 
> Hmm...  Looks like a unified diff to me...
> can't find file to patch at input line 3
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |--- libexec/NfSenRC.pm Thu Jul  1 08:01:05 2010
> |+++ /data/nfsen/libexec/NfSenRC.pm     Thu Jul  1 08:06:28 2010
> --------------------------
> File to patch: /usr/local/nfsen/libexec/NfSenRC.pm
> Patching file /usr/local/nfsen/libexec/NfSenRC.pm using Plan A...
> Hunk #1 FAILED at 80.
> 1 out of 1 hunk FAILED -- saving rejects to file
> /usr/local/nfsen/libexec/NfSenRC.pm.rej
> Done
> [r...@server-1 nfsen]#
> 
> 
> 
> 
> ***************
> *** 80,97 ****
> 
>         my $common_args = "-w -D -p $port -u $uid -g $gid $buffer_opts
> $subdirlayout -P $pidfile $NfConf::ZIPcollected $extensions";
>         my $src_args;
> -       my $optargs = '';
>         if ( scalar @$identref > 1 ) {
>                 # multiple sources per collector
>                 foreach $ident ( @$identref ) {
>                         my $IP = $NfConf::sources{$ident}{'IP'};
>                         $src_args .= "-n
> $ident,$IP,$NfConf::PROFILEDATADIR/live/$ident ";
>                 }
>         } else {
>                 # single source
>                 my $profiledir  = "$NfConf::PROFILEDATADIR/live/$ident";
> -               $optargs     = exists $NfConf::sources{$ident}{'optarg'}
> ? $NfConf::sources{$ident}{'optarg'} : '';
>                 $src_args = "-I $ident -l $profiledir ";
>         }
> 
>         my $args = "$common_args $src_args $optargs";
> --- 80,98 ----
> 
>         my $common_args = "-w -D -p $port -u $uid -g $gid $buffer_opts
> $subdirlayout -P $pidfile $NfConf::ZIPcollected $extensions";
>         my $src_args;
> +       my $optargs     = '';
>         if ( scalar @$identref > 1 ) {
>                 # multiple sources per collector
>                 foreach $ident ( @$identref ) {
>                         my $IP = $NfConf::sources{$ident}{'IP'};
>                         $src_args .= "-n
> $ident,$IP,$NfConf::PROFILEDATADIR/live/$ident ";
> +                       $optargs     = exists
> $NfConf::sources{$ident}{'optarg'} ? "$optargs
> $NfConf::sources{$ident}{'optarg'}" : '';
>                 }
>         } else {
>                 # single source
>                 my $profiledir  = "$NfConf::PROFILEDATADIR/live/$ident";
>                 $src_args = "-I $ident -l $profiledir ";
> +               $optargs     = exists $NfConf::sources{$ident}{'optarg'}
> ? $NfConf::sources{$ident}{'optarg'} : '';
>         }
> 
>         my $args = "$common_args $src_args $optargs";
> ~
> 
> 
> 
> -----Original Message-----
> From: Peter Haag [mailto:[email protected]] 
> Sent: Thursday, July 01, 2010 2:32 AM
> To: Adrian Popa
> Cc: NFSen-Discuss
> Subject: Re: [Nfsen-discuss] Values corrected by sampling are too big
> 

- ------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

- -- 
_______ SWITCH - The Swiss Education and Research Network ______
Peter Haag,  Security Engineer,  Member of SWITCH CERT
PGP fingerprint: D9 31 D5 83 03 95 68 BA  FB 84 CA 94 AB FC 5D D7
SWITCH, Werdstrasse 2, P.O. Box,  CH-8021   Zurich, Switzerland
E-mail: [email protected] Web: http://www.switch.ch/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iQCVAwUBTDGgYP5AbZRALNr/AQK17gP/RRGb5ZY2uXuPqS8X7CQycSyTot3R2hSL
bvn6c8TjYtT28aoQIiFuuPlcj9dy1XjfKLV5HQmbB47HP7j++Vx9u7+TBTrWuQ6X
GB0Dd5Bmbv+xrK5xzDEtPf762thfKpi4VWJBoUuuXr4686tOZ3NrYTwCLsEBSxHa
RZTwZI/eO+c=
=JBo8
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to