/ Check-in [2a4493f4]
Login

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

Overview
Comment:Fix the zipfile extension so that it is able to create symbolic link entries in the ZIP file even on systems like Win32 that do not support symbolic links on the native filesystem.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2a4493f4ad2d09c1097e98e7086623669f3f252571884d515e51a98b1c6855e1
User & Date: drh 2018-03-10 12:34:08
Context
2018-03-10
12:53
Avoid harmless left-shifts of negative numbers in the zipfile extension when building ZIP archives of files with pre-DOS dates. check-in: 16bba865 user: drh tags: trunk
12:34
Fix the zipfile extension so that it is able to create symbolic link entries in the ZIP file even on systems like Win32 that do not support symbolic links on the native filesystem. check-in: 2a4493f4 user: drh tags: trunk
2018-03-09
22:18
Fix the .archive command in the CLI so that it actually compresses content. check-in: 3c2e3c2d user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/misc/zipfile.c.

  1386   1386     }else{
  1387   1387       const char zTemplate[11] = "-rwxrwxrwx";
  1388   1388       int i;
  1389   1389       if( strlen(z)!=10 ) goto parse_error;
  1390   1390       switch( z[0] ){
  1391   1391         case '-': mode |= S_IFREG; break;
  1392   1392         case 'd': mode |= S_IFDIR; break;
  1393         -#if !defined(_WIN32) && !defined(WIN32)
  1394   1393         case 'l': mode |= S_IFLNK; break;
  1395         -#endif
  1396   1394         default: goto parse_error;
  1397   1395       }
  1398   1396       for(i=1; i<10; i++){
  1399   1397         if( z[i]==zTemplate[i] ) mode |= 1 << (9-i);
  1400   1398         else if( z[i]!='-' ) goto parse_error;
  1401   1399       }
  1402   1400     }