Skip to content

Instantly share code, notes, and snippets.

@jokeru
Created October 26, 2014 19:50
Show Gist options
  • Save jokeru/1777105c9eea2227ee5d to your computer and use it in GitHub Desktop.
Save jokeru/1777105c9eea2227ee5d to your computer and use it in GitHub Desktop.
collectd-web_0.4.0 patch for ubuntu 14.04
--- /usr/lib/python2.7/CGIHTTPServer.py 2014-10-26 19:24:43.087509000 +0000
+++ /usr/lib/python2.7/CGIHTTPServer.ubuntu.py 2014-10-26 19:33:00.487509000 +0000
@@ -243,10 +243,10 @@
return
# Child
try:
- try:
- os.setuid(nobody)
- except os.error:
- pass
+# try:
+# os.setuid(nobody)
+# except os.error:
+# pass
os.dup2(self.rfile.fileno(), 0)
os.dup2(self.wfile.fileno(), 1)
os.execve(scriptfile, args, env)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment