The Samba-Bugzilla – Attachment 9948 Details for
Bug 10615
libsmbclient doesn't handle disconnects properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
test program
teststat.c (text/x-csrc), 1.05 KB, created by
Ross Lagerwall
on 2014-05-18 08:18:49 UTC
(
hide
)
Description:
test program
Filename:
MIME Type:
Creator:
Ross Lagerwall
Created:
2014-05-18 08:18:49 UTC
Size:
1.05 KB
patch
obsolete
>#include <stdio.h> >#include <unistd.h> >#include <string.h> >#include <time.h> >#include <libsmbclient.h> > >static void >get_auth_data_fn(const char * pServer, > const char * pShare, > char * pWorkgroup, > int maxLenWorkgroup, > char * pUsername, > int maxLenUsername, > char * pPassword, > int maxLenPassword) >{ >} > >static void do_stat(void) >{ > char m_time[32]; > char c_time[32]; > char a_time[32]; > struct stat st; > > if (smbc_stat("smb://127.0.0.1/tmp/a", &st) < 0) > { > perror("smbc_stat"); > } else { > printf("\nSAMBA\n mtime:%lu/%s ctime:%lu/%s atime:%lu/%s\n", > st.st_mtime, ctime_r(&st.st_mtime, m_time), > st.st_ctime, ctime_r(&st.st_ctime, c_time), > st.st_atime, ctime_r(&st.st_atime, a_time)); > } >} > >int main(int argc, char * argv[]) >{ > smbc_init(get_auth_data_fn, 10); > > do_stat(); > sleep(130); > do_stat(); > do_stat(); > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10615
: 9948 |
9949
|
9950