Ray Van Dolson
2003-12-02 09:09:06 UTC
I'm trying to write a test program using libsmbclient and the simplest
things aren't working quite the way it seems they should.
#include <libsmbclient.h>
#include <stdio.h>
int main() {
printf("%d\n",smbc_open("smb://TULCATE/Mp3"));
}
% gcc -o bob test.c -lsmbclient
% ./bob
-1
%
It returns -1 for any URI I throw in there. These URI's work fine when
used with smbclient directly, so I think I may be doing something wrong.
Do I need to call smbc_init() first?
Ray Van Dolson
things aren't working quite the way it seems they should.
#include <libsmbclient.h>
#include <stdio.h>
int main() {
printf("%d\n",smbc_open("smb://TULCATE/Mp3"));
}
% gcc -o bob test.c -lsmbclient
% ./bob
-1
%
It returns -1 for any URI I throw in there. These URI's work fine when
used with smbclient directly, so I think I may be doing something wrong.
Do I need to call smbc_init() first?
Ray Van Dolson