Bug 1061 - [patch] nmbd get corrupt pathname from H option
[patch] nmbd get corrupt pathname from H option
Product: Samba 3.0
Classification: Unclassified
Component: nmbd
All Linux
: P3 minor
: none
Assigned To: Gerald (Jerry) Carter
Depends on:
  Show dependency treegraph
Reported: 2004-02-11 11:30 UTC by Andrew Esh
Modified: 2006-01-16 09:18 UTC (History)
0 users

See Also:

Patch which fixes the bug. (2.22 KB, patch)
2004-02-11 11:33 UTC, Andrew Esh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Esh 2004-02-11 11:30:30 UTC
The -H or --hosts= option to load the lmhosts file corrupts the passed-in file 
path. If the -H option is used bare, the default value of the setting works.
Comment 1 Andrew Esh 2004-02-11 11:33:06 UTC
Created attachment 396 [details]
Patch which fixes the bug.

This patch fixes the bug being described.
Comment 2 Andrew Esh 2004-02-11 11:42:47 UTC
The command line which didn't work, and then worked after the fix was:

   nmbd -s /etc/smb.conf.nmbd -H /usr/local/samba/lib/lmhosts

During debugging, the path name appeared OK at the top of main, but was 
corrupted right after processing arguments. Then it appeared like:

Comment 3 Gerald (Jerry) Carter 2004-03-18 07:06:05 UTC
moving to 3.0
Comment 4 Gerald (Jerry) Carter 2004-03-18 07:09:05 UTC
resetting component
Comment 5 Gerald (Jerry) Carter 2006-01-16 09:18:58 UTC
Amazing how long we can let legitimate patches sit in bugzilla.
Sad really.  Checked in for 3.0.21b.