summaryrefslogtreecommitdiff
path: root/net-wireless/cowpatty/files/cowpatty-4.3-hashfix.patch
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
commit7224c1253228e5c29c78cb3f0f26ce34770f2356 (patch)
tree1684924656132935256e034f35f92abee6623265 /net-wireless/cowpatty/files/cowpatty-4.3-hashfix.patch
Added ebuilds for kogaion desktop
Diffstat (limited to 'net-wireless/cowpatty/files/cowpatty-4.3-hashfix.patch')
-rw-r--r--net-wireless/cowpatty/files/cowpatty-4.3-hashfix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/net-wireless/cowpatty/files/cowpatty-4.3-hashfix.patch b/net-wireless/cowpatty/files/cowpatty-4.3-hashfix.patch
new file mode 100644
index 00000000..2ae6fcd2
--- /dev/null
+++ b/net-wireless/cowpatty/files/cowpatty-4.3-hashfix.patch
@@ -0,0 +1,12 @@
+diff -uNr cowpatty-4.3/cowpatty.c cowpatty-4.3-hashfix/cowpatty.c
+--- cowpatty-4.3/cowpatty.c 2008-03-20 09:49:38.000000000 -0700
++++ cowpatty-4.3-hashfix/cowpatty.c 2008-10-19 23:29:22.000000000 -0700
+@@ -202,7 +202,7 @@
+ }
+
+ /* Test that the files specified exist and are greater than 0 bytes */
+- if (!IsBlank(opt->hashfile)) {
++ if (!IsBlank(opt->hashfile) && strncmp(opt->hashfile, "-", 1) != 0) {
+ if (stat(opt->hashfile, &teststat)) {
+ usage("Could not stat hashfile. Check file path.");
+ exit(-1);