/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: 2009-10-03 13:04:42 UTC
  • Revision ID: teddy@fukt.bsnet.se-20091003130442-yd715ir0lbiac1fr
* mandos (daemon): Use "os.path.devnull" in the error message.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1392
1392
        null = os.open(os.path.devnull, os.O_NOCTTY | os.O_RDWR)
1393
1393
        if not stat.S_ISCHR(os.fstat(null).st_mode):
1394
1394
            raise OSError(errno.ENODEV,
1395
 
                          u"/dev/null not a character device")
 
1395
                          u"%s not a character device"
 
1396
                          % os.path.devnull)
1396
1397
        os.dup2(null, sys.stdin.fileno())
1397
1398
        os.dup2(null, sys.stdout.fileno())
1398
1399
        os.dup2(null, sys.stderr.fileno())