Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | On unix, make sure file descriptor 2 is open and file descriptor 3 is not open at the beginning of main(). The first check helps ensure that a assert() will not accidently overwrite a file. The second check verifies that the is_valid_fd() function used by the first check really works. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
4ef3708d8d646f90c9d1c486cfbb2693 |
| User & Date: | drh 2013-08-31 17:19:47.227 |
Context
|
2013-08-31
| ||
| 18:27 | Disable the test for file descriptor 3 being invalid since that messes up the "fossil diff" command. ... (check-in: fd7cfac508 user: drh tags: trunk) | |
| 17:19 | On unix, make sure file descriptor 2 is open and file descriptor 3 is not open at the beginning of main(). The first check helps ensure that a assert() will not accidently overwrite a file. The second check verifies that the is_valid_fd() function used by the first check really works. ... (check-in: 4ef3708d8d user: drh tags: trunk) | |
| 15:09 | Allow "with note" in timeline for all appropriate tags, not only +close and -close. ... (check-in: 24bff454ab user: jan.nijtmans tags: trunk) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 |
zNewArgv[0] = g.argv[0];
zNewArgv[1] = "help";
g.argc++;
g.argv = zNewArgv;
}
zCmdName = g.argv[1];
}
if( !is_valid_fd(2) ) fossil_panic("file descriptor 2 not open");
rc = name_search(zCmdName, aCommand, count(aCommand), &idx);
if( rc==1 ){
fossil_fatal("%s: unknown command: %s\n"
"%s: use \"help\" for more information\n",
g.argv[0], zCmdName, g.argv[0]);
}else if( rc==2 ){
int i, n;
| > > > | 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 |
zNewArgv[0] = g.argv[0];
zNewArgv[1] = "help";
g.argc++;
g.argv = zNewArgv;
}
zCmdName = g.argv[1];
}
#ifndef _WIN32
if( !is_valid_fd(2) ) fossil_panic("file descriptor 2 not open");
if( is_valid_fd(3) ) fossil_warning("file descriptor 3 is open");
#endif
rc = name_search(zCmdName, aCommand, count(aCommand), &idx);
if( rc==1 ){
fossil_fatal("%s: unknown command: %s\n"
"%s: use \"help\" for more information\n",
g.argv[0], zCmdName, g.argv[0]);
}else if( rc==2 ){
int i, n;
|
| ︙ | ︙ |