From cf31c7ef7484003ad542e685f9ffdbd029860ffb Mon Sep 17 00:00:00 2001 From: pauget Date: Sat, 14 Feb 2004 20:20:17 +0100 Subject: [PATCH] Pollution pour test darcs-hash:20040214192017-41617-ee387944f40e3a9d585feb6c7176c99d9b83142a.gz --- syncmail | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/syncmail b/syncmail index b15c11f2..410f49b3 100755 --- a/syncmail +++ b/syncmail @@ -234,18 +234,24 @@ 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') 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 - - userp='pauget' + + sys.exit(0) domain = fromhost or getfqdn() #Modif cosmétique pour afficher un sujet explicite : host = string.split(domain,'.') author = '%s@%s' % (user, domain) - s = StringIO() + people = 'fred@crans.org' + s = StringIO() sys.stdout = s try: print '''\