Opened 10 years ago

Closed 10 years ago

Last modified 10 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 Changed 10 years ago by Silvan Scherrer

Resolution: invalid
Status: newclosed

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

comment:2 Changed 10 years ago by asavage

Of course, sorry to have wasted your time.

Note: See TracTickets for help on using tickets.