Displaying 2 results from an estimated 2 matches for "pwmaxlen".
Did you mean:
maxlen
2002 Nov 28
0
problem with smbc_init in libsmbclient
...MA 02139, USA.
*/
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <libsmbclient.h>
void auth_fn(const char *server, const char *share,
char *workgroup, int wgmaxlen, char *username, int unmaxlen,
char *password, int pwmaxlen)
{
char temp[128];
fprintf(stdout, "Need password for //%s/%s\n", server, share);
fprintf(stdout, "Enter workgroup: [%s] ", workgroup);
fgets(temp, sizeof(temp), stdin);
if (temp[strlen(temp) - 1] == 0x0a) /* A new line? */
temp[strlen(temp) - 1] = 0x00;
if (...
2002 Nov 03
0
libsmbclient bug ?
...-------------------
The source file that causes this is:
---- tst.c ------------
#include <stdio.h>
#include <libsmbclient.h>
void auth_fn(const char *server, const char *share, char *workgroup,
int wgmaxlen, char *username, int unmaxlen,
char *password, int pwmaxlen)
{
password[0] = 0;
}
int main()
{
struct stat stat_buf;
if (0 > smbc_init(auth_fn, 0)) {
perror("smbc_init()");
return 0;
}
if (0 > (smbc_stat("smb://b0di/Muzica/lista", &stat_buf))) {...