From 255643979da5ef3c96c9c2f944fea4078dc9bf23 Mon Sep 17 00:00:00 2001 From: Sofian Brabez Date: Tue, 10 Jul 2012 11:22:59 +0000 Subject: - Fix build with clang [1] - Add LICENSE - Make portlint happy PR: ports/168838 Submitted by: Oliver Hartmann [1] Approved by: myself (maintainer) --- sysutils/ldapvi/files/patch-ldapvi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sysutils/ldapvi/files/patch-ldapvi.c (limited to 'sysutils/ldapvi/files/patch-ldapvi.c') diff --git a/sysutils/ldapvi/files/patch-ldapvi.c b/sysutils/ldapvi/files/patch-ldapvi.c new file mode 100644 index 000000000000..1939f9a11aed --- /dev/null +++ b/sysutils/ldapvi/files/patch-ldapvi.c @@ -0,0 +1,11 @@ +--- ./ldapvi.c.orig 2012-07-09 23:43:28.000000000 +0200 ++++ ./ldapvi.c 2012-07-09 23:43:50.000000000 +0200 +@@ -1465,7 +1465,7 @@ + int line = 0; + int c; + +- if (lstat(sasl, &st) == -1) return; ++ if (lstat(sasl, &st) == -1) return 0; + if ( !(in = fopen(sasl, "r"))) syserr(); + + if (st.st_size > 0) { -- cgit v1.2.3