Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | When generating a tarball, remove the complete ".tar.gz" suffix from the filename to create the top-level directory name, not just the ".gz" part. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
9ca5bbf8a6d452abf2c4c896c74d6d81 |
| User & Date: | drh 2011-03-17 15:33:37.427 |
Context
|
2011-03-17
| ||
| 17:20 | Add a link to the OpenSuSE RPMs on the download page. check-in: 7e995f54ff user: drh tags: trunk | |
| 15:33 | When generating a tarball, remove the complete ".tar.gz" suffix from the filename to create the top-level directory name, not just the ".gz" part. check-in: 9ca5bbf8a6 user: drh tags: trunk | |
|
2011-03-16
| ||
| 11:19 | Only record the first 16 bits of the IP address as part of the login cookie. This allows users with shifting IP addresses to stay logged in. Hopefully, this will address ticket [305143bd876f6]. check-in: 84e755e213 user: drh tags: trunk, release | |
Changes
Changes to src/tar.c.
| ︙ | ︙ | |||
307 308 309 310 311 312 313 |
login_check_credentials();
if( !g.okZip ){ login_needed(); return; }
zName = mprintf("%s", PD("name",""));
nName = strlen(zName);
zRid = mprintf("%s", PD("uuid",""));
nRid = strlen(zRid);
| > > > > > > > | | | | > | 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 |
login_check_credentials();
if( !g.okZip ){ login_needed(); return; }
zName = mprintf("%s", PD("name",""));
nName = strlen(zName);
zRid = mprintf("%s", PD("uuid",""));
nRid = strlen(zRid);
if( nName>7 && strcmp(&zName[nName-7], ".tar.gz")==0 ){
/* Special case: Remove the ".tar.gz" suffix. */
nName -= 7;
zName[nName] = 0;
}else{
/* If the file suffix is not ".tar.gz" then just remove the
** suffix up to and including the last "." */
for(nName=strlen(zName)-1; nName>5; nName--){
if( zName[nName]=='.' ){
zName[nName] = 0;
break;
}
}
}
rid = name_to_rid(nRid?zRid:zName);
if( rid==0 ){
@ Not found
return;
}
|
| ︙ | ︙ |