apply fix from upstream to remove a missed reference to 'unlink'

prompted by Eric Brown
This commit is contained in:
jasper 2014-02-02 10:45:51 +00:00
parent 6b8327db99
commit 6eee51f26c
2 changed files with 20 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2013/10/23 08:15:17 jasper Exp $
# $OpenBSD: Makefile,v 1.4 2014/02/02 10:45:51 jasper Exp $
PKG_ARCH= *
@ -6,6 +6,7 @@ COMMENT= secure hosting of Git repositories
VERSION= 3.5.3.1
DISTNAME= gitolite-${VERSION}
REVISION= 0
CATEGORIES= sysutils devel
HOMEPAGE= https://github.com/sitaramc/gitolite/

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-src_triggers_post-compile_update-gitweb-access-list,v 1.1 2014/02/02 10:45:51 jasper Exp $
From fc5467c76da69c8977b8869c59aa672a7a576fdb Mon Sep 17 00:00:00 2001
From: "John L. Scarfone" <john@scarfone.net>
Date: Wed, 22 Jan 2014 14:09:08 -0500
Subject: [PATCH] change unlink to rm -f
--- src/triggers/post-compile/update-gitweb-access-list.orig Mon Oct 21 04:08:15 2013
+++ src/triggers/post-compile/update-gitweb-access-list Sun Feb 2 11:44:06 2014
@@ -23,7 +23,7 @@ plf=`gitolite query-rc GITWEB_PROJECTS_LIST`
# since mktemp does not honor umask, we just use it to generate a temp
# filename (note: 'mktemp -u' on some systems, this gets close enough)
tmpfile=`mktemp $plf.tmp_XXXXXXXX`
-unlink $tmpfile;
+rm -f $tmpfile;
(
gitolite list-phy-repos | gitolite access % gitweb R any | grep -v DENIED