Timeline
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

72 check-ins using file src/main.c version 992562b227

2021-06-30
13:52
Enhance the blob_append_escaped_args() routine with a new parameter to indicate if the argument is a filename. Only prepend "./" to filename arguments that begin with "-". The "%$" printf conversion assumes a filename, but the "%!$" conversion does not. check-in: 4f83d06275 user: drh tags: trunk
13:07
Remove legacy code that attempted to use -P instead of -p on "plink" for the port number of SSH. check-in: ffe2a84cec user: drh tags: trunk
2021-06-29
05:05
Fixed a && which was supposed to be a & in the new patch code. Caught by gcc. check-in: 1fd6961005 user: stephan tags: trunk
2021-06-26
18:08
Fix various documentation typos. check-in: 3fec387cc3 user: drh tags: trunk
2021-06-25
17:12
Fix a busted hyperlink in the change-log. check-in: cd80b9f70f user: drh tags: trunk
07:41
Integrated a doc suggestion from [forum:/forumpost/3e52a5ca12 | forum post 3e52a5ca12]. check-in: 62ad4e47a4 user: stephan tags: trunk
2021-06-24
16:40
Improvements to comments on the filename shell quoting logic and test logic. No changes to code. check-in: 255a28b37a user: drh tags: trunk
16:31
Improvements to command-line safety checks for Windows. Enhance the command-line argument quoting fuzzer to inject all kinds of multi-byte UTF-8 characters. check-in: 6d2e48b4cd user: drh tags: trunk
15:35
Improve filename shell escaping logic to deal better with UTF-8 characters. check-in: 19f195a838 user: drh tags: trunk
15:27
Minor typo fixes in new patch command help text. No code changes. check-in: 1190034e37 user: jamsek tags: trunk
2021-06-23
20:05
Add the -f flag to "fossil patch diff". check-in: 5ee62c4033 user: drh tags: trunk
19:55
The "fossil patch diff" command should now emit an error message if there is a repository mismatch or a base artifact is missing. check-in: 962694ada0 user: drh tags: trunk
19:14
The "-f" flag on "fossil patch create" causes an existing patch with the same name to be overwritten. check-in: a332f1a64f user: drh tags: trunk
19:06
Enhance "fossil patch" to record the project name as part of the patch. Show the project name in "fossil patch view" output, if it exists. Show lots of metadata in "fossil project view" with the -v flag. check-in: 5a28d7c094 user: drh tags: trunk
18:43
In the "fossil patch" command, miscellaneous code clean-up. Do not require an option check-out to run "fossil patch diff", though a -R REPO option is required if not in an open check-out. No error is given if the repository and the patch do not match - that needs to be fixed. check-in: 2e8c5da0ab user: drh tags: trunk
18:25
Add the "fossil patch diff" command. check-in: 72d07a52c3 user: drh tags: trunk
15:43
Add additional metadata to patch files. check-in: b9d5fa4d7b user: drh tags: trunk
2021-06-22
23:57
Further improvements to quoting defense. check-in: 7d6635542b user: drh tags: trunk
19:19
Further improvements to argument escaping on Unix. check-in: 597f0bc224 user: drh tags: trunk
18:57
Improved quoting for filenames on constructed command-lines. check-in: b3fab9b5dd user: drh tags: trunk
18:19
Reworked the MinGW outdated instructions in www/build.wiki. It was still warning about a MinGW bug from 2014, and it didn't cover the cross-compilation details at all. That in turn gives us a basis for explaining why cross-compilation may matter even to those who don't realize they're doing so, as in the Cygwin and WSL cases, which then explains ... check-in: 2c66a5395a user: wyoung tags: trunk
17:28
There is a fossil_spawn() implementation for windows here, using _wspawnvp(). But it does not work. Apparently _wspawnvp() does not preserve the argument boundaries. Closed-Leaf check-in: be6aa9e637 user: drh tags: demo-windows-wspawn-error
16:57
Removed a paragraph from www/caps/index.md referencing the now-removed "plink -ssh -T" alternative to "ssh -e none -T" on Windows. This paragraph bordered on "TMI" before, so now that it's going to be increasingly correct as Fossil 2.16+ filters out, it needs to go. check-in: f48a9f71f3 user: wyoung tags: trunk
16:36
Initialized a pointer to 0 to squish a bogus complaint from GCC 11 on MinGW 9. The code passes ASAN on macOS Clang without this, so I believe GCC is just doing over-eager static analysis across function calls, not realizing that the pointer *will* be initialized before it's used. Closed-Leaf check-in: 54febc1f72 user: wyoung tags: fossil-spawn
16:29
Removed a few bits of src/carray.c that are only needed to allow building the module as a loadable extension. This goes beyond code minimalism, because one of the lines referenced a header we don't provide within Fossil, sqlite3ext.h, which means the only reason this branch compiled before is that it was picking up thje system version, risking a v... check-in: 202ea753e4 user: wyoung tags: fossil-spawn
15:51
Minor doc correction. check-in: f8f1d035ed user: stephan tags: trunk
15:43
Add the fact that "ssh" is now used by Windows to the change log. check-in: 775860ad2e user: drh tags: trunk
15:37
The default "ssh" comand is now always "ssh". Omit the legacy "plink" alternative on Windows as Windows machines now generally all support ssh. check-in: 38567237d7 user: drh tags: trunk
15:18
Minor fixes to the cleanup of the "patchcmd.md" document. check-in: 990019346e user: drh tags: trunk
13:33
Add the "fossil patch" command. check-in: e0d61109e1 user: drh tags: trunk
13:30
Add documentation for "fossil patch" Closed-Leaf check-in: 169346a1aa user: drh tags: patch-cmd
13:00
Get the pipes working on windows. check-in: a534422e89 user: drh tags: patch-cmd
12:47
Help-screen updates for the patch command. check-in: 5433a92982 user: drh tags: patch-cmd
12:41
Both push and pull demonstrated, linux-to-linux. check-in: e60389b0d6 user: drh tags: patch-cmd
12:24
Code in place for "patch pull" and "patch push". check-in: ccfdc89c96 user: drh tags: patch-cmd
08:46
[ead1432af9 | An earlier refactoring on this branch] broke the new array-based setting method: got a little too clever with my use of DB handles. check-in: 3bcf3abd56 user: wyoung tags: fossil-spawn
08:45
Comment clarification check-in: c625c259a1 user: wyoung tags: fossil-spawn
08:34
Converted "fossil diff" and "fossil gdiff" to the new array-based setting mechanism. The legacy system(3) style shell command string methods are still available for use with --command and legacy single-string settings, but if you pass 2+ values to "fossil setting diff-command VALUES..." (ditto gdiff-command) it's now stored as an array, triggering... check-in: 68055fd3ed user: wyoung tags: fossil-spawn
07:56
Constness fix to the new fossil_spawn() function to avoid compiler complaints on current macOS. check-in: eefb8e64ed user: wyoung tags: fossil-spawn
07:52
Changed the new json_deserialize_array() interface to make it easier to call correctly. check-in: 765acbc080 user: wyoung tags: fossil-spawn
05:25
Added a JSON array deserializer function and a test-json-deserialize-array command to test it. check-in: dac496b300 user: wyoung tags: fossil-spawn
03:52
Renamed the test-* wrapper for the new JSON array serializer to better match its internal implementation function. NFC. check-in: 06d27250d5 user: wyoung tags: fossil-spawn
03:45
Extracted json_serialize_array() function common to both test-json-carray and settings commands, reducing redundant code. check-in: ead1432af9 user: wyoung tags: fossil-spawn
02:37
Taught "fossil settings" how to accept multiple ?VALUES? parameters, storing the result as a JSON-encoded array in the config table. Nothing uses this yet, but the resulting SQL DB manipulation appears to work correctly. check-in: ca069402f8 user: wyoung tags: fossil-spawn
01:38
Added the carray() virtual table extension from SQLite and added the test-json-carray command to test it. This is needed for the next step on this branch. check-in: 4223fe8cb5 user: wyoung tags: fossil-spawn
01:32
Allow patches to be sent and received via standard input and standard output. check-in: 9180106327 user: drh tags: patch-cmd
00:30
Fix a subtle glitch in the Changelog. No code changes. check-in: 2b073cc3c1 user: george tags: trunk
00:12
Bug fixes in "fossil patch apply". check-in: f5629790cc user: drh tags: patch-cmd
00:04
First attempt to get "fossil patch apply" working. There are probably still bugs. Certainly much more testing is needed. check-in: 5865739195 user: drh tags: patch-cmd
2021-06-21
23:03
Added more test cases to test-spawn-* and gave the test cases human-readable names rather than numbers. check-in: 27cdcbbb49 user: wyoung tags: fossil-spawn
22:43
Enhanced ability to deal with merges. check-in: 03dca8fca9 user: drh tags: patch-cmd
22:37
Created fossil_spawn() as a dumb-as-rocks wrapper for posix_spawnp(2) and created tests to prove that it doesn't double-interpret its args as fossil_system() does. This isn't portable yet; it's just a seed we can use to bring this branch to a PoC state. check-in: fb7c579736 user: wyoung tags: fossil-spawn
21:20
Enhance patchfiles to deal with renames. check-in: 4d82a8d1d0 user: drh tags: patch-cmd
19:34
Get the "fossil patch view" command working check-in: b08e8651e4 user: drh tags: patch-cmd
19:09
Code to generate a patchfile. check-in: 7333115dc2 user: drh tags: patch-cmd
17:15
Begin adding infrastructure for the new "fossil patch" command. check-in: 343745fd36 user: drh tags: patch-cmd
14:14
Add the "fossil bisect run" command to the change log. check-in: 162625e212 user: drh tags: trunk
13:53
Add the "fossil bisect run" command. check-in: 7d4cf0ed69 user: drh tags: trunk
12:35
In the test-fossil-system command, show the result code coming back from each command. check-in: f6b67e157e user: drh tags: trunk
2021-06-19
20:58
This should demonstrate a behavior of inline STYLE tags. Notice gray background of PRE elements in www/defcsp.md and the lack of it in www/webui.wiki. See forum [forum:/forumthread/69f475cf48|thread 69f475cf48]. Leaf check-in: 1d276f7b23 user: george tags: inline-style-inconsistency
02:29
Fix a possible "use-after-free" while rendering a /file page for the case when "ci" parameter is missing. This is a preliminary fix, it may introduce a (tiny) memory leak. check-in: a6477bca65 user: george tags: trunk
2021-06-18
20:25
Update the built-in SQLite to version 3.36.0 check-in: 3a97dff2cf user: drh tags: trunk
2021-06-17
23:34
Amend "Interwiki Tag Map" heading at the bottom of /md_rules and /wiki_rules pages: turn the word "Map" into a link to the /intermap page. check-in: 5061599031 user: george tags: trunk
22:51
On the /rptsql page wrap a report's source code and the tickets schema with CODE elements having class="language-sql". check-in: d3ca01a81e user: george tags: trunk
10:32
Replaced a couple of blob_append() with blob_append_escaped_arg() so that a diff-command setting with spaces in the path will work, as discussed in [forum:/forumpost/29e7250723461d18 | forum post 29e7250723461d18]. (Bug: this would include any flags to the diff-command as part of the include, which obviously won't work.) Closed-Leaf check-in: dcbc8ba9fc user: stephan tags: mistake
02:20
/announce page: add an explicit ACTION value for the form so that a 'to=...' URL parameter does not end up shadowing the 'to' field of the form and causing the announcement to be sent to the URL-provided address even if that form field is edited. check-in: 2fa43ef4fb user: stephan tags: trunk
2021-06-16
20:26
Preserve the C89 compatibility of pikchr.c by using MSVC C89 implementations of rint() and snprintf() with older MSVC versions Leaf check-in: 6429a4bdc2 user: ashepilko tags: test-msc89
20:24
Add a test program for MSVC C89 implementations of rint() and snprintf() check-in: c945679735 user: ashepilko tags: test-msc89
20:24
Fix the C89-style related declarations; add a gcc warning to flag such issues, in case these slip through again check-in: da9f362015 user: ashepilko tags: trunk
13:10
Update to the "how the download page works" document to talk about how Source Tarball links are now computed on-the-fly. check-in: 8f4fd8c1d8 user: drh tags: trunk
12:44
On the /cachestat page, provide a link to the timeline check-in context for the origin of each item in the cache. check-in: 61c33f67b3 user: drh tags: trunk
05:23
Internal docs: removed outdated references to skn_NAME paths. check-in: 9d845ebb00 user: stephan tags: trunk