#239 closed defect (invalid)
Plugin documentation: error in description to enable debug logging
Reported by: | asavage | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | Netdrive plugin 2.2.x |
Component: | Samba Client Plugin | Version: | |
Keywords: | Cc: |
Description
In this file: ftp://ftp.netlabs.org/pub/samba/client/ndpsmb-2_2_0-beta3-20131004.zip
In README.TXT
- Debugging
To produce a logfile please add an empty file called ndpsmb.dbg into the root drive."
However, client\src\debug.c
strncat(debugfile, getenv("ETC"), 2); strncat(debugfile, "
", sizeof(debugfile) - strlen(debugfile)
-1);
strncat(debugfile, "ndpsmb.dbg", sizeof(debugfile) -
strlen(debugfile) -1);
is the file around? if not we have no debug if (stat(debugfile, &filestat) !=0)
return;
Translating to English, the code is looking in %ETC for ndpsmb.dbg, not the "root drive".
Note:
See TracTickets
for help on using tickets.
you read the code wrong. We only get the first 2 characters of %ETC% to find the drive.