Commit graph

135 commits

Author SHA1 Message Date
Andreas Schneider
ecf1027a54 This is a start for a sftp module. 2008-08-06 18:16:54 +02:00
Andreas Schneider
05253be461 Simplify _readdir function of the smb module. 2008-08-06 18:16:08 +02:00
Andreas Schneider
d7309c4ff9 Rename the callback function. 2008-06-24 13:36:27 +02:00
Andreas Schneider
5496d868ca Restructure code and add some comments. 2008-06-24 10:20:13 +02:00
Andreas Schneider
b73684cc80 Use a static variable for krb5. 2008-06-24 10:19:53 +02:00
Andreas Schneider
4c345d5a80 Allocate memory directly in the module.
This fixes a segfault in pam_csync.
2008-06-20 14:39:58 +02:00
Andreas Schneider
cdda179203 Fix kerberos support.
libsmbclient calls always the authentication function. So what we have to
do is to try to authenticat with the current credentials.
2008-06-20 14:06:36 +02:00
Andreas Schneider
4ef93cdf17 Add more debug output. 2008-06-20 10:10:19 +02:00
Andreas Schneider
35284ff09e Set all smbc options before we call smbc_init. 2008-06-19 16:08:53 +02:00
Andreas Schneider
a6b2a4b47d Add more debug messages. 2008-06-19 15:36:02 +02:00
Andreas Schneider
0f5541ba9a Initialize global variables in csync_smb module. 2008-06-19 15:35:41 +02:00
Andreas Schneider
ef6633a130 libsmbclient doesn't provide a chown function so disable it.
It would be possible to use smbc_setxattr.
2008-06-19 10:32:59 +02:00
Andreas Schneider
8fa73bb8dd Temporary fix for Samba cause smbc_chown is missing. 2008-06-18 16:29:14 +02:00
Andreas Schneider
0da1133bdb Return an error if basename fails on uri in stat command. 2008-05-21 16:06:45 +02:00
Andreas Schneider
711f8ff78d Fix abort, don't free dirent. 2008-05-13 16:02:59 +02:00
Andreas Schneider
7284461931 Don't segfault if the callback is NULL. 2008-05-13 16:02:24 +02:00
Andreas Schneider
4e6a65ab9d Use the auth callback in the modules. 2008-05-13 13:39:34 +02:00
Andreas Schneider
1b223a355c Fix build warnings. 2008-05-09 10:57:40 +02:00
Andreas Schneider
e6f4a4cf4b Add a module dummy for testing. 2008-05-09 10:56:38 +02:00
Andreas Schneider
2fe557af62 Change the debug message. 2008-04-30 13:09:44 +02:00
Andreas Schneider
fb55788e2e Add support for new libsmbclient interface. 2008-04-29 09:54:29 +02:00
Andreas Schneider
69a4f9f1c1 Change name of link_count to nlink. 2008-04-29 09:07:30 +02:00
Andreas Schneider
cf505c38a5 Add uid and gid fields to csync_vio_file_stat. 2008-04-28 14:22:04 +02:00
Andreas Schneider
be53c0762d Use a pointer in the utimes functions. 2008-04-25 16:48:28 +02:00
Andreas Schneider
1892d73537 Fix segfaults for read, write and lseek and set errno. 2008-04-25 14:36:24 +02:00
Andreas Schneider
dd6cc1f83c Fix a segfault if we try to close a nullpointer.
Same local or in the smb plugin.
2008-04-25 10:57:35 +02:00
Andreas Schneider
282c915290 Fix a segfault if you pass NULL to closedir. 2008-04-23 17:37:39 +02:00
Andreas Schneider
c281a720b0 Fix the directory handling. 2008-04-23 12:12:02 +02:00
Andreas Schneider
8b31bb70b7 Fix typo. 2008-04-22 12:09:30 +02:00
Andreas Schneider
26bf60720c Use the right dhandle type of closedir in vio. 2008-04-22 11:27:04 +02:00
Andreas Schneider
0b7dde4934 Complete the smb plugin. 2008-04-16 14:05:13 +02:00
Andreas Schneider
ec5d3afea0 Fix warning about shadowed variables. 2008-04-16 10:32:01 +02:00
Andreas Schneider
269f5f5403 Add readdir function and add some debug messages. 2008-04-10 15:46:17 +02:00
Andreas Schneider
a465f28037 Fix the build. 2008-04-07 18:13:46 +02:00
Andreas Schneider
ab39159607 Add virtual IO plugin system.
This is the initial commit of the vio plugin system. The idea is based on
gnomevfs.
2008-04-07 17:16:41 +02:00