Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Disable the test for file descriptor 3 being invalid since that messes up the "fossil diff" command. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
fd7cfac508519fa98f52080022d61da3 |
| User & Date: | drh 2013-08-31 18:27:39.179 |
Context
|
2013-09-01
| ||
| 15:56 | Eliminate some compiler warnings (taken over last - patched - version from SQLite) ... (check-in: 0a24d431c7 user: jan.nijtmans tags: trunk) | |
|
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) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
608 609 610 611 612 613 614 |
g.argc++;
g.argv = zNewArgv;
}
zCmdName = g.argv[1];
}
#ifndef _WIN32
if( !is_valid_fd(2) ) fossil_panic("file descriptor 2 not open");
| | | 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 |
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 ){
|
| ︙ | ︙ |