Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix the file_copy() procedure so that it sets the EXE bit on the copy if it was set on the source. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
cb2f254096081379d5a85945057af98f |
| User & Date: | drh 2020-04-01 16:14:43.598 |
Context
|
2020-04-02
| ||
| 18:57 | Fix the "fossil revert" command so that it works even for a new --empty checkout. check-in: 9aca02b73c user: drh tags: trunk | |
| 00:15 | Attempting to add "accordion" action to the "About" sections of pages that have associated wiki. Basically works, but needs CSS tweaks, and possibly other UX improvements. check-in: b17e4c5a77 user: drh tags: accordion-about-wiki | |
|
2020-04-01
| ||
| 17:04 | merge trunk check-in: 7da1aa6f31 user: bch tags: NULLSeparated | |
| 16:14 | Fix the file_copy() procedure so that it sets the EXE bit on the copy if it was set on the source. check-in: cb2f254096 user: drh tags: trunk | |
| 12:57 | For self-registered accounts, increase the minimum userID length to 6 and check both the EVENT and USER tables for conflicting userIDs. check-in: b13b651da2 user: drh tags: trunk | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
out = fossil_fopen(zTo, "wb");
if( out==0 ) fossil_fatal("cannot open \"%s\" for writing", zTo);
while( (got=fread(zBuf, 1, sizeof(zBuf), in))>0 ){
fwrite(zBuf, 1, got, out);
}
fclose(in);
fclose(out);
}
/*
** COMMAND: test-file-copy
**
** Usage: %fossil test-file-copy SOURCE DESTINATION
**
| > | 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 |
out = fossil_fopen(zTo, "wb");
if( out==0 ) fossil_fatal("cannot open \"%s\" for writing", zTo);
while( (got=fread(zBuf, 1, sizeof(zBuf), in))>0 ){
fwrite(zBuf, 1, got, out);
}
fclose(in);
fclose(out);
if( file_isexe(zFrom, ExtFILE) ) file_setexe(zTo, 1);
}
/*
** COMMAND: test-file-copy
**
** Usage: %fossil test-file-copy SOURCE DESTINATION
**
|
| ︙ | ︙ |