From command prompt if I run: # nmbd -s smb.conf results in nmbd aborting. However, # nmbd -s <some path>/smb.conf will not abort. The problem appears to be in lib/pidfile.c, function pidfile_create() in lines: short_configfile = strrchr( dyn_CONFIGFILE, '/'); slprintf( name, sizeof( name)-1, "%s-%s", program_name, short_configfile+1); since there is no forward slash in dyn_CONFIGFILE, short_configfile = 0, which causes the subsequent call to slprintf to fail since address of second %s is 1.
Patch from Steven Danneman <steven.danneman@isilon.com> committed in svn r22113.