When I run tmda-ofmipd v1.1.9 as follows:

tmda-ofmipd -f -p localhost:8025

I get the following error:

Traceback (most recent call last):
  File "/usr/pkg/bin/tmda-ofmipd", line 1256, in ?
    main()
  File "/usr/pkg/bin/tmda-ofmipd", line 1209, in main
    authfile_mode = Util.getfilemode(opts.authfile)
  File "/usr/pkg/lib/python2.4/site-packages/TMDA/Util.py", line 120, in 
getfilemode
    statinfo = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found

When I look in the source, I see what looks like a bug on line 291 (in 
tmda/1.1.9):

287 if running_as_root:
288     if not opts.username:
289     opts.username = 'tofmipd'
290     if not opts.authfile:
291     authfile = '/usr/pkg/etc/tmda/tofmipd'
292     ipauthmapfile = '/usr/pkg/etc/tmda/ipauthmap'
293 else:
294     tmda_path = os.path.join(os.path.expanduser('~'), '.tmda')
295     ipauthmapfile = os.path.join(tmda_path, 'ipauthmap')
296     if not opts.authfile:
297     opts.authfile = os.path.join(tmda_path, 'tofmipd')

If I change line 291 to read:

291     opts.authfile = '/usr/pkg/etc/tmda/tofmipd'

...it seems to fix the problem.


I've fixed this in my version, but I figured I should share.  I haven't 
subscribed to the list, so please reply to my email account also.

Thanks!

Nathan
_________________________________________________
tmda-workers mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to