pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
torsocks: Add a patch to torsocks to redirect stderr to /dev/null
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Mon Jan 29 16:18:44 2018 +0100
Changeset: 65ccac0eea6e0317bad71cbe327df05e2f237bf4
Modified Files:
torsocks/distinfo
Added Files:
torsocks/patches/patch-src_bin_torsocks.in
Log Message:
torsocks: Add a patch to torsocks to redirect stderr to /dev/null
This will avoid printing error messages on NetBSD.
This is just a dirty hack and getcap(1) should be probably used against paths
only on platforms that support that.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=65ccac0eea6e0317bad71cbe327df05e2f237bf4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
torsocks/distinfo | 1 +
torsocks/patches/patch-src_bin_torsocks.in | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
diffs:
diff --git a/torsocks/distinfo b/torsocks/distinfo
index 17b7ff32d1..d7280f35a8 100644
--- a/torsocks/distinfo
+++ b/torsocks/distinfo
@@ -4,3 +4,4 @@ SHA1 (torsocks_2.2.0.orig.tar.xz) = 53d8cb45b487571d39ab226e25cb538976a195a1
RMD160 (torsocks_2.2.0.orig.tar.xz) = a16adc2120da9c846d4801ece60a43758a25f2e6
SHA512 (torsocks_2.2.0.orig.tar.xz) = 89eb1263bfb0079ca5cb7fcc3a6fa1ecde1327df9ea98de48babfff1f8947b1e9db8407ead747fef0190671e7fff502025dcfcd9b6cba97abbaf25b5a575c62a
Size (torsocks_2.2.0.orig.tar.xz) = 309916 bytes
+SHA1 (patch-src_bin_torsocks.in) = bee6e0266b7ff1bedccb5ecb3879915b48acb7c1
diff --git a/torsocks/patches/patch-src_bin_torsocks.in b/torsocks/patches/patch-src_bin_torsocks.in
new file mode 100644
index 0000000000..0dd323c9c8
--- /dev/null
+++ b/torsocks/patches/patch-src_bin_torsocks.in
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Discard stderr when invoking getcap(1).
+
+XXX: At least on NetBSD `getcap' should be invoked against databases, not
+XXX: arbitrary paths.
+
+--- src/bin/torsocks.in.orig 2016-10-16 21:11:33.000000000 +0000
++++ src/bin/torsocks.in
+@@ -144,7 +144,7 @@ torify_app ()
+ # This must be before torifying because getcap uses cap_get_file(3)
+ # via syscall(2) which breaks torsocks.
+ if [ -n "$getcap" ]; then
+- caps=`$getcap $app_path`
++ caps=`$getcap $app_path 2>/dev/null`
+ fi
+
+ # Check if Apple's System Integrity Protection is enabled if the user is
Home |
Main Index |
Thread Index |
Old Index