Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Another coding style (whitespace) fix. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
2ccd046de2dad793e31677b0a7a12983 |
| User & Date: | mistachkin 2016-10-01 03:39:37.387 |
Context
|
2016-10-01
| ||
| 04:21 | Use #define constants instead of numbers to improve readability of code. check-in: 68b53604bb user: andybradford tags: trunk | |
| 03:39 | Merge updates from trunk. check-in: 3e4eba78f0 user: mistachkin tags: dirSymlinks | |
| 03:39 | Another coding style (whitespace) fix. check-in: 2ccd046de2 user: mistachkin tags: trunk | |
| 03:36 | Fix casing of a temporary table name to be consistent. check-in: efeb10c5b3 user: mistachkin tags: trunk | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
469 470 471 472 473 474 475 |
int file_wd_setexe(const char *zFilename, int onoff){
int rc = 0;
#if !defined(_WIN32)
struct stat buf;
if( fossil_stat(zFilename, &buf, 1)!=0 || S_ISLNK(buf.st_mode) ) return 0;
if( onoff ){
int targetMode = (buf.st_mode & 0444)>>2;
| | | | 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
int file_wd_setexe(const char *zFilename, int onoff){
int rc = 0;
#if !defined(_WIN32)
struct stat buf;
if( fossil_stat(zFilename, &buf, 1)!=0 || S_ISLNK(buf.st_mode) ) return 0;
if( onoff ){
int targetMode = (buf.st_mode & 0444)>>2;
if( (buf.st_mode & 0100)==0 ){
chmod(zFilename, buf.st_mode | targetMode);
rc = 1;
}
}else{
if( (buf.st_mode & 0100)!=0 ){
chmod(zFilename, buf.st_mode & ~0111);
rc = 1;
}
}
#endif /* _WIN32 */
return rc;
}
|
| ︙ | ︙ |