Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2004 15:42:00 GMT
From:      Balázs Nagy <js@iksz.hu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/67978: [patch] [maintainer-update] sysutils/logrotate bugfix to call scripts with file name as arg1
Message-ID:  <200406151542.i5FFg01m004153@www.freebsd.org>
Resent-Message-ID: <200406151550.i5FFoM2R003098@freefall.freebsd.org>

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

>Number:         67978
>Category:       ports
>Synopsis:       [patch] [maintainer-update] sysutils/logrotate bugfix to call scripts with file name as arg1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 15 15:50:21 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Balázs Nagy
>Release:        FreeBSD tcb.aranyoroszlan.hu 5.2.1-RELEASE-p5 FreeBSD 5.2.1-RELEASE-p5 #2: Tue Apr 20 19:14:16 CEST 2004     root@tcb.aranyoroszlan.hu:/opt/devel/obj/opt/devel/src/sys/SAMU  i386
>Organization:
>Environment:
>Description:
Wilco van Boxtel reported that prerotate and postrotate scripts don't get the logfile name to be rotated, as it was in previous versions.  The bug was in execlp() call, which calling syntax is execlp(filename, arg0, arg1, ..., argn, NULL), but arg0 is not included in original software.
>How-To-Repeat:
      
>Fix:
This patch-aa replacement fixes the problem:
begin 644 patch-aa
M9&EF9B`M<G5.(&QO9W)O=&%T92TS+C<M;W)I9R]C;VYF:6<N8R!L;V=R;W1A
M=&4M,RXW+V-O;F9I9RYC"BTM+2!L;V=R;W1A=&4M,RXW+6]R:6<O8V]N9FEG
M+F,)36]N(%-E<"`R,B`R,3HQ,3HQ,B`R,#`S"BLK*R!L;V=R;W1A=&4M,RXW
M+V-O;F9I9RYC"4UO;B!-87D@,C0@,#@Z,#DZ,SD@,C`P-`I`0"`M,2PT("LQ
M+#,@0$`*+2-I;F-L=61E(#QA;&QO8V$N:#X*("-I;F-L=61E(#QC='EP92YH
M/@H@(VEN8VQU9&4@/&1I<F5N="YH/@H@(VEN8VQU9&4@/&5R<FYO+F@^"F1I
M9F8@+7)U3B!L;V=R;W1A=&4M,RXW+6]R:6<O;&]G<F]T871E+F,@;&]G<F]T
M871E+3,N-R]L;V=R;W1A=&4N8PHM+2T@;&]G<F]T871E+3,N-RUO<FEG+VQO
M9W)O=&%T92YC"51H=2!&96(@(#4@,3DZ-#(Z,3,@,C`P-`HK*RL@;&]G<F]T
M871E+3,N-R]L;V=R;W1A=&4N8PE4=64@2G5N(#$U(#$W.C,U.C0X(#(P,#0*
M0$`@+3$L-"`K,2PS($!`"BTC:6YC;'5D92`\86QL;V-A+F@^"B`C:6YC;'5D
M92`\8W1Y<&4N:#X*("-I;F-L=61E(#QD:7)E;G0N:#X*("-I;F-L=61E(#QE
M<G)N;RYH/@I`0"`M,3$P+#<@*S$P.2PW($!`"B`@("`@8VQO<V4H9F0I.PH@
M"B`@("`@:68@*"%F;W)K*"DI('L*+0EE>&5C;'`H9FEL97-P96,L(&QO9V9N
M+"!.54Q,*3L**PEE>&5C;'`H9FEL97-P96,L(&9I;&5S<&5C+"!L;V=F;BP@
;3E5,3"D["B`)97AI="@Q*3L*("`@("!]"B`*
`
end

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



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