Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix crash. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | winExtCgi |
| Files: | files | file ages | folders |
| SHA3-256: |
9d37ebbee6661827e6011572b3ff7622 |
| User & Date: | mistachkin 2019-08-06 01:49:05.084 |
Context
|
2019-08-06
| ||
| 01:49 | Fix crash. Closed-Leaf check-in: 9d37ebbee6 user: mistachkin tags: winExtCgi | |
|
2019-08-05
| ||
| 16:35 | Initial draft changes to support 'extcgi' on Win32. check-in: fbe1eddaa3 user: mistachkin tags: winExtCgi | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
293 294 295 296 297 298 299 |
** routine can only return PERM_EXE and PERM_REG.
**
** On windows, this routine returns only PERM_REG.
*/
int file_perm(const char *zFilename, int eFType){
#if defined(_WIN32)
static const char *azExts[] = { ".com", ".exe", NULL };
| > | | | | | | > | 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 |
** routine can only return PERM_EXE and PERM_REG.
**
** On windows, this routine returns only PERM_REG.
*/
int file_perm(const char *zFilename, int eFType){
#if defined(_WIN32)
static const char *azExts[] = { ".com", ".exe", NULL };
if( zFilename ){
const char *zExt = strrchr(zFilename, '.');
if( zExt ){
int i;
for( i=0; azExts[i]; i++ ){
if( sqlite3_stricmp(zExt, azExts[i])==0 ){
return PERM_EXE;
}
}
}
}
#else
if( !getStat(zFilename, RepoFILE) ){
if( S_ISREG(fx.fileStat.st_mode) && ((S_IXUSR)&fx.fileStat.st_mode)!=0 )
return PERM_EXE;
|
| ︙ | ︙ |