Differences From Artifact [ff770acf2a]:
- File src/zip.c — part of check-in [c88880fa8a] at 2021-01-21 23:33:25 on branch trunk — Add the --list option to the "tarball", "zip", and "sqlar" commands. Also rig those commands so that if the output filename is an empty string or "/dev/null" then they do not actually form the output archive. (user: drh size: 30741) [more...]
To Artifact [5eeeec9efb]:
- File src/zip.c — part of check-in [005bba0650] at 2021-07-11 19:16:46 on branch wrong-branch — Checked into the wrong branch... (user: drh size: 30819) [more...]
| ︙ | |||
938 939 940 941 942 943 944 945 946 947 948 949 950 951 | 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 | + + + |
nName = strlen(zName);
g.zOpenRevision = zRid = fossil_strdup(z);
nRid = strlen(zRid);
zInclude = P("in");
if( zInclude ) pInclude = glob_create(zInclude);
zExclude = P("ex");
if( zExclude ) pExclude = glob_create(zExclude);
if( zInclude==0 && zExclude==0 ){
etag_check_for_invariant_name(z);
}
if( eType==ARCHIVE_ZIP
&& nName>4
&& fossil_strcmp(&zName[nName-4], ".zip")==0
){
/* Special case: Remove the ".zip" suffix. */
nName -= 4;
zName[nName] = 0;
|
| ︙ |