From: "Peter Eriksen" <s022018@student.dtu.dk>
To: git@vger.kernel.org
Subject: [Was Re: sprintf security holes?] Building on OpenBSD
Date: Fri, 16 Sep 2005 23:36:27 +0200 [thread overview]
Message-ID: <20050916213627.GA19867@ebar091.ebar.dtu.dk> (raw)
In-Reply-To: <86zmqd5aey.fsf@blue.stonehenge.com>
On Fri, Sep 16, 2005 at 07:56:05AM -0700, Randal L. Schwartz wrote:
>
> As I was trying to (unsuccessfully) compile git for OpenBSD, I noticed
> a number of occurances of sprintf(), because OpenBSD thoughtfully
> yells at programmers for using that.
I've got git mostly working on OpenBSD. Here is what I changed:
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -87,7 +87,7 @@ SCRIPT_PYTHON = \
# The ones that do not have to link with lcrypto nor lz.
SIMPLE_PROGRAMS = \
- git-get-tar-commit-id git-mailinfo git-mailsplit git-stripspace
\
+ git-get-tar-commit-id git-mailsplit git-stripspace \
git-daemon git-var
# ... and all the rest
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -50,7 +50,7 @@ test_expect_success \
test_expect_success \
'validate file modification time' \
- 'TZ=GMT tar tvf b.tar a/a |
+ 'TZ=GMT gtar tvf b.tar a/a |
awk \{print\ \$4,\ \(length\(\$5\)\<7\)\ ?\ \$5\":00\"\ :\ \$5\} \
>b.mtime &&
echo "2005-05-27 22:00:00" >expected.mtime &&
The two issues showing up are
1) missing strcasestr() which is used in mailinfo.c
2) OpenBSD tar tvf doesn't format the date as we expect.
There were talks about making a directory compat/ with system
specific code, where an implementation of strcasestr.c could go?
With those changes all I did to compile was:
gmake CFLAGS+='-I/usr/local/include/ -L/usr/local/lib'
gmake test
gmake install
Regards,
Peter
next prev parent reply other threads:[~2005-09-16 21:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-16 14:56 sprintf security holes? Randal L. Schwartz
2005-09-16 16:11 ` Morten Welinder
2005-09-16 21:36 ` Peter Eriksen [this message]
2005-09-19 7:42 ` Junio C Hamano
2005-09-19 12:42 ` Sven Verdoolaege
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050916213627.GA19867@ebar091.ebar.dtu.dk \
--to=s022018@student.dtu.dk \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).