From f7556e1e87b21dacaee34d5303dad0d22ebb7758 Mon Sep 17 00:00:00 2001 From: pauget Date: Sat, 14 Feb 2004 20:25:19 +0100 Subject: [PATCH] Pollution encore darcs-hash:20040214192519-41617-63587e2a7eaa5b8f0737ebf99d99a54d460ce329.gz --- syncmail | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/syncmail b/syncmail index 410f49b3..2687758d 100755 --- a/syncmail +++ b/syncmail @@ -235,17 +235,13 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost): # Obtention du real user => signature automatique des commits ppid=os.getpid() print ppid - print os.getppid() - os.system('env') - os.system('ps auxww -o ppid,pid,user') + os.system('ps auxww') while user=='root' : ppid,user = string.split(string.strip(os.popen("ps --no-headers -o ppid,user %s" % ppid).readlines()[0])) if ppid=='1' : # C'est init, l'user est donc bien root - print os.popen("ps --no-headers -o ppid,user %s" % ppid).readlines() break - sys.exit(0) domain = fromhost or getfqdn() #Modif cosmétique pour afficher un sujet explicite : host = string.split(domain,'.')