[sysadmin-bin: 27/168] Add missing [] around subprocess.Popen() argument list



commit 545e0e9b07cffa710df81b21088247f3c32b4b20
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Mar 2 16:15:53 2009 -0500

    Add missing [] around subprocess.Popen() argument list
    
    Missed [] when switching from a fake-sendmail to the real sendmail.

 gnome-post-receive-email |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-post-receive-email b/gnome-post-receive-email
index ab619d9..b397667 100755
--- a/gnome-post-receive-email
+++ b/gnome-post-receive-email
@@ -218,7 +218,7 @@ def split_lines(str):
 # Open a subprocess.Popen process object for sending mail. Write the
 # mail to process.stdin, and then call close_email()
 def open_email():
-    process = Popen("/usr/sbin/sendmail", "-t",
+    process = Popen(["/usr/sbin/sendmail", "-t"],
                     stdout=PIPE, stderr=PIPE, stdin=PIPE)
     return process
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]