Klaas Freitag
fd9a380fc9
owncloud: memclear a buf and remove not needed win32 code.
2012-04-10 11:45:19 +02:00
Klaas Freitag
3676ca623a
owncloud: set _fmode variable to set file ops to binary mode.
2012-04-10 11:43:56 +02:00
Klaas Freitag
3ae453cc36
std: Renamed struct_stat to csync_stat_t and use c_private.h again.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-03-21 13:48:41 +01:00
Klaas Freitag
e264ac347d
owncloud: use decoded file name to search in stat result list.
2012-03-15 14:11:14 +01:00
Klaas Freitag
5ad5d176f9
ownCloud: Use win32 API to get the standard user temp path.
...
Conflicts:
modules/csync_owncloud.c
2012-03-15 14:11:14 +01:00
Klaas Freitag
14791534ca
owncloud: cleaned some comment signs from C++ to C type.
2012-03-15 14:11:14 +01:00
Klaas Freitag
bc138efa4e
owncloud: set _fmode variable to set file ops to binary mode.
2012-03-07 16:18:08 +01:00
Klaas Freitag
87d3a56221
owncloud: More robust programming, some additional logs.
2012-03-07 16:18:08 +01:00
Klaas Freitag
bb1ccadebc
ownCloud: Fix translation of mkcol 405 errcode to ernno.
2012-03-07 16:18:08 +01:00
Klaas Freitag
9b8e75e4fc
ownCloud: append a trailing slash in mkdir as neon requests.
2012-03-07 16:18:08 +01:00
Klaas Freitag
a454156dc2
ownCloud: remove wired function to generate errno from neon error.
...
The errno is now either generated from the session values of neon
or individually in each function.
2012-03-07 16:18:08 +01:00
Klaas Freitag
edb073a290
ownCloud: removed the test on webdav.php. It is not needed.
...
The server handles it correctly itself to return the correct
type for the toplevel dir webdav.php
2012-03-07 16:18:08 +01:00
Klaas Freitag
9f67accf14
owncloud: Fix stat function for WebDAV root.
...
If a propcall happens to webdav.php the webdav server returns the
result list for all entries. In stat only the webdav.php entry is
interesting and must be searched within the result list.
2012-03-07 16:18:08 +01:00
Dominik Schmidt
1fbba4f158
mingw: resolve name clashes in dummy module and link it against libcsync
2012-03-02 17:04:02 +01:00
Dominik Schmidt
11c515f869
mingw: resolve name clashes in sftp module
2012-03-02 17:04:02 +01:00
Dominik Schmidt
f064dbcde4
Make libsmbclient optional
2012-03-02 17:02:59 +01:00
Klaas Freitag
ded226911e
owncloud: Removed unused file attribute contenttype from PROPFIND.
2012-02-22 18:23:18 +01:00
Klaas Freitag
56c583615d
owncloud: Remove more unused logging.
2012-02-22 18:23:18 +01:00
Klaas Freitag
3025ada5dc
owncloud: Use c_parse_uri instead of neon equivalent, minor cleanups.
2012-02-22 18:23:18 +01:00
Klaas Freitag
5c97b6f81d
owncloud: Call the neon ssl functions only if SSL is active.
...
Especially ne_ssl_trust_default_ca seems to crash in case no SSL is
used actually. Added a flag to determine between SSL and no SSL.
Moved a debug message to the right place.
2012-02-22 18:23:18 +01:00
Klaas Freitag
bc1174cb8a
owncloud: Add ne_ssl_trust_default_ca to trust default certificates.
2012-02-22 18:23:18 +01:00
Klaas Freitag
d7e13276e5
owncloud: Remove the sorting of the dirlist results.
2012-02-22 18:23:18 +01:00
Klaas Freitag
5ba71bbf79
Change module link statement to link against LIBCSYNC.
...
For windows building, the whole csync lib instead of the C standards
only is needed. Not a big difference, so changed for all platforms.
2012-02-22 18:23:18 +01:00
Klaas Freitag
45ec3c0248
owncloud: Removed unused _stat function.
2012-02-22 18:23:18 +01:00
Klaas Freitag
71e110364e
owncloud: added cleanPath and moved _stat_perms.
2012-02-22 18:23:18 +01:00
Klaas Freitag
f56103dc0d
owncloud: Removed unused cleanUrl function.
2012-02-22 18:23:18 +01:00
Klaas Freitag
664f1cb17d
owncloud: some code cleanups.
2012-02-22 18:23:18 +01:00
Klaas Freitag
e320ccf7f8
owncloud: Renames of the vio functions by appending owncloud.
...
That avoids name clashes with MinGW. Patch provided by Dominik Schmidt.
2012-02-22 18:23:18 +01:00
Klaas Freitag
425f4b1cec
owncloud: Some code fixes and more errno corrections.
2012-02-22 18:23:18 +01:00
Klaas Freitag
545115bfae
owncloud: Set proper useragent, fixed some comments and warnings.
2012-02-22 18:23:18 +01:00
Klaas Freitag
936a32295f
owncloud: Added SSL support.
2012-02-22 18:23:18 +01:00
Klaas Freitag
19a485944a
owncloud: added missing close.
2012-02-22 18:23:18 +01:00
Klaas Freitag
7c3544611b
owncloud: Adopted to new owncloud scheme.
2012-02-22 18:23:18 +01:00
Klaas Freitag
07b4fbcf4f
owncloud: Module renamed to owncloud.
2012-02-22 18:23:18 +01:00
Klaas Freitag
e4259719ad
owncloud: Convert webdav -> http in init function.
2012-02-22 18:23:18 +01:00
Klaas Freitag
931a2823f8
owncloud: Fixes in setting errno correctly in stat.
2012-02-22 18:23:18 +01:00
Klaas Freitag
a25c59be94
owncloud: Use the correct property name for lastmodification time.
2012-02-22 18:23:18 +01:00
Klaas Freitag
56d36ae63e
owncloud: Code rearranges and stat call added to stat.
...
Rearranged function sequence and added stat call to parent dir to
function open if file is written to. That allows a proper ENOENT
return value if directory is not yet existing. Fixed more escaping
glitches.
2012-02-22 18:23:18 +01:00
Klaas Freitag
ac01d3a404
owncloud: More memory management fixes and debug output.
2012-02-22 18:23:18 +01:00
Klaas Freitag
1c0275bfee
owncloud: Fixed escaping for url paths, improved error handling.
...
Fixed escaping for url paths, improved error handling and mem
management
2012-02-22 18:23:17 +01:00
Klaas Freitag
17d0b504fa
owncloud: Fixed uri parsing, added escaping, more mem cleanups.
2012-02-22 18:23:17 +01:00
Klaas Freitag
0aed3f57b4
owncloud: Implemented proper auth callback handling. Fixed move request
2012-02-22 18:23:17 +01:00
Klaas Freitag
1c7a286dec
owncloud: Renamed local var for consistency.
2012-02-22 18:23:17 +01:00
Klaas Freitag
fd189b3946
owncloud: Code cleanups.
...
Removed unused variables, fixed some comments, added some memory frees,
removed compile warnings
2012-02-22 18:23:17 +01:00
Klaas Freitag
709d4d560d
owncloud: Reworked read and write to operate on local copies.
...
This creates local temporary files and uses them to transfer the data
(GET and PUT requests).
2012-02-22 18:23:17 +01:00
Klaas Freitag
f4978ad6eb
owncloud: Fix rename: use target path only instead of complete uri.
2012-02-22 18:23:17 +01:00
Klaas Freitag
fc808fa80a
owncloud: Implementation of utimes.
2012-02-22 18:23:17 +01:00
Klaas Freitag
e0deecfa82
owncloud: Set permissions in stat data block correctly.
2012-02-22 18:23:17 +01:00
Klaas Freitag
5f040f4063
owncloud: Simplify code useing c_basename to get filename from path.
2012-02-22 18:23:17 +01:00
Klaas Freitag
7f26533f8e
owncloud: Improve error handling and set errno.
2012-02-22 18:23:17 +01:00