Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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

  1. 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".

Change History (2)

comment:1 by Silvan Scherrer, 11 years ago

Resolution: invalid
Status: newclosed

you read the code wrong. We only get the first 2 characters of %ETC% to find the drive.

comment:2 by asavage, 11 years ago

Of course, sorry to have wasted your time.

Note: See TracTickets for help on using tickets.