1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

sysutils/gstopd: Sanitize MANPREFIX

- Refresh patches

Approved by:	portmgr (blanket)
This commit is contained in:
Muhammad Moinur Rahman 2024-01-21 02:59:45 +01:00
parent 95891a30fd
commit a825136636
2 changed files with 10 additions and 5 deletions

View File

@ -1,12 +1,15 @@
PORTNAME= gstopd
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= LOCAL/mr
MAINTAINER= mr@FreeBSD.org
COMMENT= GEOM stop daemon
PLIST_FILES= sbin/gstopd man/man8/gstopd.8.gz
LICENSE= BSD2CLAUSE
PLIST_FILES= sbin/gstopd share/man/man8/gstopd.8.gz
.include <bsd.port.options.mk>
@ -16,6 +19,6 @@ CFLAGS+= -Wno-error=unused-but-set-variable
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gstopd ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/gstopd.8 ${STAGEDIR}${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/gstopd.8 ${STAGEDIR}${PREFIX}/share/man/man8
.include <bsd.port.mk>

View File

@ -1,9 +1,11 @@
--- gstopd.c.orig 2013-10-10 12:51:01.431793192 +0000
+++ gstopd.c 2013-10-10 12:58:54.538750707 +0000
@@ -116,5 +116,5 @@
--- gstopd.c.orig 2004-03-24 10:25:33 UTC
+++ gstopd.c
@@ -115,7 +115,7 @@ main(int argc, char **argv)
if( error != 0 ) {
errx( 1, "Error %d accessing %s", errno, path );
}
- snprintf( devs[i].name, 6, argv[i] );
+ snprintf( devs[i].name, 6, "%s", argv[i] );
devs[i].lastt = 1;
}
error = daemon( 0, 0 );