Kenneth Skovhede
db222c1991
Now getting the correct UID and GID
2018-06-28 09:28:14 +02:00
Kenneth Skovhede
5405139729
Replaced compile-time flag and dependency on Mono.Posix with a dynamic call to UnixSupport to defer loading the Mono.Posix library.
2018-06-27 13:36:08 +02:00
Max
68de4bbbde
more libraries ported
2018-06-24 14:49:30 +02:00
Max
e4997f1efc
upstream
2018-06-24 12:49:51 +02:00
verhoek
fc5f582800
moved dll filename var to const. Only change permissions on new file creation.
2018-06-23 19:16:12 +02:00
verhoek
eabb840a4c
Only add mono.posix on non-windows.
2018-06-22 17:21:28 +02:00
verhoek
edc866c17e
Make Codacy happier.
2018-06-22 09:47:46 +02:00
verhoek
05b2483b4c
Added chmoding of sqlite files after opening by sqlite. Removal of some duplication.
2018-06-21 18:58:55 +02:00
verhoek
772eb1f187
Moved method to sqlite loader.
2018-06-21 18:08:52 +02:00
verhoek
12b5644789
Public unnecessary.
2018-06-21 17:41:30 +02:00
verhoek
a456318d86
Undo of restoring TEMP/TMP environment variables.
2018-06-19 08:41:07 +02:00
verhoek
19132abd5f
Check mixed mode assembly more explicitly.
2018-06-14 22:00:59 +02:00
verhoek
1cb13cc3cb
Reduce indentation.
2018-06-14 21:43:20 +02:00
verhoek
98a4d4c247
Readded environment variables for SQLite on windows.
2018-06-14 21:35:21 +02:00
verhoek
7f06db8e44
Removed non-thread safe PRAGMA temp_store_directory command.
2018-06-11 22:06:06 +02:00
verhoek
544b89b3e2
Removed unused imports.
2018-06-11 19:10:41 +02:00
verhoek
e51584e03f
Added some logging in case of error.
2018-06-11 19:10:14 +02:00
verhoek
fecd5163e5
Single responsibility applied.
2018-06-11 18:50:11 +02:00
verhoek
d53a806e04
Removal of obsolete prev variable.
2018-06-11 18:31:39 +02:00
verhoek
784480a340
Removed tempdir environment variable.
...
Removed unused optional parameter for tempdir in LoadConnection for
LoadConnection and hence avoiding restoring never changed SQLITE_TMPDIR
vars.
2018-06-11 14:40:57 +02:00
Kenneth Skovhede
ee64517f7d
Removed calls to Console.WriteLine as we may run somewhere without a console.
2018-05-15 11:29:08 +02:00
Max
f5672f69d9
upgrade .net to 4.6.2
2018-03-25 22:00:45 +02:00
Kenneth Skovhede
842fd96543
Implemented a new logging system that is more transparent and allows a more granular way of picking log messages.
...
Added ID's to each log message and each exception to allow later introduction of a Knowledgebase service that explains each error in more detail.
2018-03-15 09:12:34 +01:00
Kenneth Hsu
056ff3da96
Use built-in method to determine if process is 64-bit.
2018-01-02 19:03:46 -08:00
Kenneth Hsu
8810e0130d
Make string comparisons use ordinal (binary) sort rules.
...
These string comparisons should not be culture-aware.
2017-11-26 11:19:54 -08:00
Kenneth Hsu
3d51e9153b
Avoid signing assemblies.
...
Using strong-named assemblies can cause difficulties with the GNU LGPL
license, which allows for one to recombine or relink their application
with modified versions of the code. While one solution is to share the
private key so that people can sign the assemblies themselves, this
would break the trust that is expected from signed assemblies. For now,
the easiest fix is to simply not sign the assemblies. Note that by
doing so, we prevent the code from being referenced from other signed
assemblies.
This also fixes an issue introduced in revision ba94d36a80 ("Added
auto-update for WindowsService and Service."), where the WindowsService
project (signed) referenced the AutoUpdater project (not signed).
We also removed instances of <SignAssembly>false</SignAssembly> to be
consistent with newly created .csproj files that do not contain the
SignAssembly element.
This was motivated by the discussion in issue #2814 .
2017-10-15 22:00:23 -07:00
Tyler Gill
83a1dcfb64
Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase in string comparisons.
...
InvariantCulture is useful when comparing / sorting human language strings in a culturely correct way. It handles things like accented letters in a way that makes sense to humans (e.g., 'a' should be sorted next to 'á', rather than after 'z').
Ordinal looks just at the raw code points of the characters. As such, it is recommended for use in cases when comparing system strings (file paths, command line parameters, config settings, etc.). Since it doesn't need to use the culture specific sorting rules, this method can often be faster.
For more information, see https://stackoverflow.com/questions/492799/difference-between-invariantculture-and-ordinal-string-comparison (and other related questions)
2017-09-18 23:55:08 -06:00
Dan Stahr
377aef5fe1
Corrected path to the new files.
2017-06-08 23:21:25 +01:00
Dan Stahr
8c3d83f9af
...and add the files to the project as well
2017-06-08 16:24:06 +01:00
Dan Stahr
d0f8fffc25
Added support for executing non-SQL code when performing a database update.
...
Some of the database migrations I'm planning to perform are very slow if using SQL only
or entirely impossible using the standard SQLite toolchain. I added a simple interface
with "before SQL" and "after SQL" hooks so that a database upgrade can perform custom
code operations as well.
2017-06-08 15:50:03 +01:00
Kenneth Skovhede
f223c38ad7
Updating the SQLite library on Windows to 1.0.104.0.
...
The Linux version use Mono.Data.SQLite if possible, and otherwise attempts to wrap the system sqlite.so.
This fixes #2144
2017-03-01 11:10:01 +01:00
Kenneth Skovhede
c79eaad6a8
Pedantic fix: use single quotes as described in the documentation
2017-01-16 10:28:38 +01:00
Kenneth Skovhede
3b4cd3c9c2
Experiment to set the SQLite temp folder, both through the environment variable and the deprecated pragma statement
2017-01-15 23:09:47 +01:00
Kenneth Skovhede
a029890409
Implemented better default error messsages
2017-01-09 11:35:38 +01:00
Kenneth Skovhede
52eb8e8478
Disabled MSBuild for much faster builds on MacOS
2016-12-29 23:12:41 +01:00
Kenneth Skovhede
785c4d325f
Reverted changes to solution file so it again forces Windows linefeeds.
...
This also moved stuff around in some project files.
2016-04-13 00:36:22 +02:00
Kenneth Skovhede
742eab0913
Fixed multiple cases where connections and command instances were not disposed.
...
This should fix all cases of "File is locked" on windows.
2016-04-06 20:40:34 +02:00
Kenneth Skovhede
3397e42e0b
Merge pull request #1620 from FootStark/DeleteVolumeQuickFix
...
Mitigate slow volume deletion
2016-03-16 15:38:54 +01:00
FootStark
8e9a080697
Do preparsing before command splitting
2016-03-16 14:30:44 +01:00
FootStark
7656e891ce
Prepocessor for schema, Optimized RemoveRemoteVolume
...
Added a preprocessor for schema supporting sqlite_version-dependent
Statements
RemoveRemoteVolume deletes volumes in batch.
2016-03-16 00:49:28 +01:00
Kenneth Skovhede
97af9be53f
Spelling fix
2016-03-13 17:00:51 +01:00
Kenneth Skovhede
9ae7ea233a
Possible fix for PR #1456 and issue #1449
2015-09-08 16:41:16 +02:00
Kenneth Skovhede
ca5e503680
Fixed loading SQLite with Mono 4.0 and newer
2015-05-04 10:43:24 +02:00
Kenneth Skovhede
0d7cf7203b
Updated to .Net framework version 4.5
2015-01-26 11:22:52 +01:00
Kenneth Skovhede
3149064cde
Merge branch 'no_more_resx'
2015-01-20 21:45:54 +01:00
Kenneth Skovhede
8d13e698eb
Updated copyright notices
2015-01-20 21:44:52 +01:00
Kenneth Skovhede
16c791f0b5
Removed all resx files, now using Duplicati.Library.Localization exclusively
2015-01-20 21:07:24 +01:00
Kenneth Skovhede
968785ce32
Fixed a spelling error
2014-06-18 13:28:12 +02:00
Kenneth Skovhede
69bd080aa5
Updated the version number in all projects to 2.0.0.7
2014-06-13 15:08:51 +02:00
Kenneth Skovhede
e70ba0a477
Updated product-number in the project files
2014-06-13 15:00:12 +02:00