Bug 1061 - [patch] nmbd get corrupt pathname from H option
Summary: [patch] nmbd get corrupt pathname from H option
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: nmbd (show other bugs)
Version: 3.0.0
Hardware: All Linux
: P3 minor
Target Milestone: none
Assignee: Gerald (Jerry) Carter (dead mail address)
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 11:30 UTC by Andrew Esh
Modified: 2006-01-16 09:18 UTC (History)
0 users

See Also:


Attachments
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:

   "wX\032\b/local/samba/lib/lmhosts"
Comment 3 Gerald (Jerry) Carter (dead mail address) 2004-03-18 07:06:05 UTC
moving to 3.0
Comment 4 Gerald (Jerry) Carter (dead mail address) 2004-03-18 07:09:05 UTC
resetting component
Comment 5 Gerald (Jerry) Carter (dead mail address) 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.