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,'.')