mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
- Fix bug: prerotate and postrotate scripts don't get the logfile name to be
rotated - Raise portrevision PR: ports/67978 Submitted by: Balázs Nagy <js@iksz.hu> (maintainer)
This commit is contained in:
parent
9a3382d932
commit
2b329fc732
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=111623
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= logrotate
|
||||
PORTVERSION= 3.7
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
|
||||
MASTER_SITE_SUBDIR= l/logrotate
|
||||
|
@ -8,9 +8,18 @@ diff -ruN logrotate-3.7-orig/config.c logrotate-3.7/config.c
|
||||
#include <errno.h>
|
||||
diff -ruN logrotate-3.7-orig/logrotate.c logrotate-3.7/logrotate.c
|
||||
--- logrotate-3.7-orig/logrotate.c Thu Feb 5 19:42:13 2004
|
||||
+++ logrotate-3.7/logrotate.c Mon May 24 08:09:45 2004
|
||||
+++ logrotate-3.7/logrotate.c Tue Jun 15 17:35:48 2004
|
||||
@@ -1,4 +1,3 @@
|
||||
-#include <alloca.h>
|
||||
#include <ctype.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
@@ -110,7 +109,7 @@
|
||||
close(fd);
|
||||
|
||||
if (!fork()) {
|
||||
- execlp(filespec, logfn, NULL);
|
||||
+ execlp(filespec, filespec, logfn, NULL);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user