Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Simplify a test when looking for the command tail. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | ssh-signing |
| Files: | files | file ages | folders |
| SHA3-256: |
e1cbb9968d93b80446b83946964a1786 |
| User & Date: | danield 2025-01-03 14:28:26.925 |
Context
|
2025-01-03
| ||
| 15:57 | Make clear the one can use the Fossil user name in the .allowed_signers file. check-in: b25a0eff1f user: danield tags: ssh-signing | |
| 14:28 | Simplify a test when looking for the command tail. check-in: e1cbb9968d user: danield tags: ssh-signing | |
|
2025-01-02
| ||
| 00:12 | Allow a path to the ssh-keygen in the pgp-command setting. check-in: 121093b835 user: danield tags: ssh-signing | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
562 563 564 565 566 567 568 |
** Return the tail of a command: the basename of the putative executable (which
** could be quoted when containing spaces) and the following arguments.
*/
const char *command_tail(const char *z){
const char *zTail = z;
char chQuote = 0;
if( !zTail ) return 0;
| | < < | < | 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 |
** Return the tail of a command: the basename of the putative executable (which
** could be quoted when containing spaces) and the following arguments.
*/
const char *command_tail(const char *z){
const char *zTail = z;
char chQuote = 0;
if( !zTail ) return 0;
while( z[0] && (!fossil_isspace(z[0]) || chQuote) ){
if( z[0]=='"' || z[0]=='\'' ){
chQuote = (chQuote==z[0]) ? 0 : z[0];
}
if( fossil_isdirsep(z[0]) ) zTail = &z[1];
z++;
}
return zTail;
}
|
| ︙ | ︙ |