#!/usr/bin/env python
# Wrapper for Debian Security team
-# Copyright (C) 2002 James Troup <james@nocrew.org>
-# $Id: amber,v 1.6 2002-10-16 02:47:32 troup Exp $
+# Copyright (C) 2002, 2003 James Troup <james@nocrew.org>
+# $Id: amber,v 1.8 2003-03-14 19:06:02 troup Exp $
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
"poolname": dscpoolname };
if os.environ.has_key("SUDO_UID"):
- whoami = os.environ["SUDO_UID"].atol();
+ whoami = long(os.environ["SUDO_UID"]);
else:
whoami = os.getuid();
whoamifull = pwd.getpwuid(whoami);
adv = utils.TemplateSubst(Subst, Cnf["Dir::Templates"]+"/amber.advisory");
if not Options["No-Action"]:
- utils.send_mail (adv, "");
+ utils.send_mail (adv);
else:
print "[<Would send template advisory mail>]";