/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos

  • Committer: Teddy Hogeborn
  • Date: 2016-03-02 17:35:23 UTC
  • Revision ID: teddy@recompile.se-20160302173523-rdhzeatfxr582i2c
Use "nogroup" as a fallback group, not "nobody".

* Makefile (GROUP): Use "nogroup" as a fallback group, not "nobody".
* mandos (main): - '' -

Show diffs side-by-side

added added

removed removed

Lines of Context:
2922
2922
            logger.error("Could not open file %r", pidfilename,
2923
2923
                         exc_info=e)
2924
2924
    
2925
 
    for name in ("_mandos", "mandos", "nobody"):
 
2925
    for name, group in (("_mandos", "_mandos"),
 
2926
                        ("mandos", "mandos"),
 
2927
                        ("nobody", "nogroup")):
2926
2928
        try:
2927
2929
            uid = pwd.getpwnam(name).pw_uid
2928
 
            gid = pwd.getpwnam(name).pw_gid
 
2930
            gid = pwd.getpwnam(group).pw_gid
2929
2931
            break
2930
2932
        except KeyError:
2931
2933
            continue