Commit graph

201 commits

Author SHA1 Message Date
6723c97de1 make authfile handling compatible with smbclient 4.6.x 2017-08-17 16:00:22 +02:00
79b69c635b Fix exception throwing 2017-08-17 15:59:30 +02:00
088fa6d54b better handling of authentication failure 2017-08-17 15:11:21 +02:00
6691355d93 optimize get and put 2017-08-16 18:08:57 +02:00
85b101b701 optimize sequential writes to stream 2017-08-16 18:08:57 +02:00
8c89cb8972 Optimize reading of large files when using php-smbclient 2017-08-16 18:04:30 +02:00
4ca899f582 dont call notify callback if we dont have a proper change 2017-08-16 18:03:34 +02:00
8d473d219e phpdoc fixes 2016-12-12 22:34:33 +01:00
c1afd721f2 cleaner conversion of errors to exceptions 2016-12-08 17:21:50 +01:00
98eff3b9b8 simplify parseStat 2016-12-08 16:59:51 +01:00
96b16502e4 fix setMode normal 2016-12-08 16:39:08 +01:00
e0ffe88756 move notify constants to INotifyHandler 2016-12-08 16:16:54 +01:00
8c937d6126 Add INotifyHandler to make notify more flexible 2016-12-08 15:18:24 +01:00
1bf43bf0a3 code reuse 2016-12-08 15:02:26 +01:00
7ddcd96e47 check if we can find smbclient in path 2016-12-01 13:04:56 +01:00
82f961896f return non escaped path from exceptions 2016-08-27 00:44:27 +02:00
2601885185 reduce code complexity a bit 2016-08-26 23:59:48 +02:00
b43c129ed9 remove code duplication for listShares 2016-08-26 23:45:29 +02:00
9c50244e67 minor code cleanup 2016-08-26 23:25:17 +02:00
471824d423 reduce code duplication for error handling 2016-08-26 23:25:14 +02:00
68aa34962f reduce code duplication 2016-08-26 23:14:17 +02:00
1870e2ee81 fix statCache phpdoc 2016-08-26 23:11:07 +02:00
2754259528 Fix parsing allinfo result 2016-08-26 22:57:15 +02:00
Robin Appelman
2a101e73bc Make the dependency on stdbuf optional for everything but notify 2016-06-13 14:19:56 +02:00
Robin Appelman
01b61508a7 normalize slashes in notify 2016-05-13 16:31:46 +02:00
Robin Appelman
2522f2f63f factor out checking for next prompt 2016-04-26 15:04:43 +02:00
Robin Appelman
11023c007e factor out some error handling 2016-04-26 14:57:14 +02:00
Robin Appelman
e1b943bb8c use the smbclient based backend to implement notify for the libsmbclient backend 2016-04-26 14:43:11 +02:00
Robin Appelman
862bf0825d keep the share usable with the notify command is running 2016-04-26 14:41:03 +02:00
Robin Appelman
fdb83ce72f fix handling empty line output 2016-04-26 14:39:17 +02:00
Robin Appelman
45d3ee449f factor out connection creation 2016-04-26 14:38:16 +02:00
Robin Appelman
727fed5efb pass return values from callback 2016-04-26 12:12:14 +02:00
Robin Appelman
bbac31c5b0 dont buffer output when we're handling it in a callback 2016-04-26 12:08:43 +02:00
Robin Appelman
cf23de2702 add basic smb notify support
at the moment this only works when using the smbclient based backend
2016-04-25 18:15:34 +02:00
Robin Appelman
c50d9aa6a5 disable output buffering for smbclient 2016-04-25 17:44:08 +02:00
Robin Appelman
6e544f617c fix return values for smbclient backend 2016-04-08 11:02:27 +02:00
Robin Appelman
68c5ef5670 use regular stat instead of fstat 2016-03-14 15:09:41 +01:00
Robin Appelman
7aa7b44b7c return false if stream_stat fails 2016-03-09 13:09:44 +01:00
Robin Appelman
83388c4ffc handle empty paths 2016-01-19 19:39:52 +01:00
Robin Appelman
b538cf38d0 log fopen errors 2016-01-19 19:33:46 +01:00
Robin Appelman
1fb6581c8d handle invalid handles in Share->get 2016-01-19 18:41:33 +01:00
Robin Appelman
d8105d7695 fix php53 compat 2015-12-31 20:58:49 +01:00
Robin Appelman
b865f430d6 Improve locating file descriptors and smbclient/net commands 2015-12-31 20:45:18 +01:00
Robin Appelman
a07a5ad2ec Improved detection of connection errors 2015-12-31 20:36:23 +01:00
Robin Appelman
c92ae086f6 Put exception class in message 2015-11-27 13:41:08 +01:00
Robin Appelman
9277bd2026 also block \r 2015-08-17 16:20:38 +02:00
Robin Appelman
4ca3c3df22 Check for invalid characters in paths 2015-08-17 13:01:39 +02:00
Robin Appelman
b822af84c5 fix type 2015-08-14 16:51:14 +02:00
Robin Appelman
6e1f693ad5 escape host name 2015-08-14 14:15:41 +02:00
Robin Appelman
c36739bdc5 Dont send the command as shell argument when making a read/write stream 2015-08-14 14:03:46 +02:00