bug in sidai/passwd-dist/passwdgen.py
Will Partain <[email protected]> 02 Oct 2002 17:52:47 +0100
| Newsgroups | gmane.comp.sysutils.ark.devel |
|---|---|
| Message-ID | <[email protected]> |
This is to report a bug in Matt's very clever
password-distribution thing (but mostly to see if he's awake
:-)
The fragment of code below avoids extra work. However: if
you add one or more hosts to the system, you *do* need to run
this thing! i.e. the test below lies.
A workaround is to touch /etc/passwd on the passwd master.
Will
def passwdgen( cfg, opts, verbose = 0):
...
# do we even need to bother?
# nb. if it changes in the meantime, that's not a problem - will just mean
# that it gets run an extra time
link = os.path.join( dist_dir, 'LATEST' )
last = utils.get_latest( link )
stamp = passwdfile.need_update( last, dist_dir )
if not stamp:
if verbose:
sys.stderr.write( 'Nothing to do this time.\n' )
sys.exit(0)
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf