summaryrefslogtreecommitdiff
path: root/dev-db/sqlite/files/sqlite-3.24.0-nonfull_archive-archive_command_paths_handling.patch
blob: 69ab04822709811deaed9c7bf71fe6f5a29857aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
https://sqlite.org/src/info/27291f2d7fd4dadf

--- /shell.c
+++ /shell.c
@@ -12786,7 +12786,8 @@
     "SELECT "
     " ($dir || name),"
     " writefile(($dir || name), %s, mode, mtime) "
-    "FROM %s WHERE (%s) AND (data IS NULL OR $dirOnly = 0)";
+    "FROM %s WHERE (%s) AND (data IS NULL OR $dirOnly = 0)"
+    " AND name NOT GLOB '*..[/\\]*'";
 
   const char *azExtraArg[] = { 
     "sqlar_uncompress(data, sz)",