Differences From Artifact [0ea241f03e]:
- File
src/tar.c
— part of check-in
[8a0c546990]
at
2011-09-08 11:59:42
on branch symlinks
— Introduce new file_wd_* functions that use stat() or lstat() depending on 'allow-symlinks' setting, and use them when dealing with files inside the working directory. Make file_* functions always use stat() as before merging symlink support.
Fix renaming of symlinks when merging (via new function symlink_copy()).
Rename create_symlink() to symlink_create(). (user: dmitry size: 17977) [more...]
To Artifact [a673fd8b35]:
- File src/tar.c — part of check-in [34b4dec0bc] at 2011-09-14 17:45:40 on branch stephan-hack — Refactored g.okXXX perms flags to g.perm.XXX. (user: stephan size: 17980) [more...]
| ︙ | ︙ | |||
570 571 572 573 574 575 576 |
void tarball_page(void){
int rid;
char *zName, *zRid;
int nName, nRid;
Blob tarball;
login_check_credentials();
| | | 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 |
void tarball_page(void){
int rid;
char *zName, *zRid;
int nName, nRid;
Blob tarball;
login_check_credentials();
if( !g.perm.Zip ){ login_needed(); return; }
zName = mprintf("%s", PD("name",""));
nName = strlen(zName);
zRid = mprintf("%s", PD("uuid",""));
nRid = strlen(zRid);
if( nName>7 && fossil_strcmp(&zName[nName-7], ".tar.gz")==0 ){
/* Special case: Remove the ".tar.gz" suffix. */
nName -= 7;
|
| ︙ | ︙ |