freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "James K. Lowden" <jklowden AT freetds.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] new functionality
- Date: Sat, 20 Jan 2007 15:51:34 -0500
ZIGLIO, Frediano, VF-IT wrote:
> in t0001 there is something strange
>
> if (argc > 1) {
> printf("server and login timeout overrides (%s and %s) detected\n",
> argv[0], argv[1]);
> strcpy(SERVER, argv[0]);
> i = atoi(argv[1]);
> if (i) {
> i = dbsetlogintime(i);
> printf("dbsetlogintime returned %s.\n", (i == SUCCEED)? "SUCCEED" :
> "FAIL");
> }
> }
>
> argv[0] should be t0001 not first program argument.
Each time getopt(3) finds an option, argv is incremented.
--jkl
-
[freetds] new functionality,
James K. Lowden, 01/16/2007
- [freetds] Uninstallation of freetds, Manish Kumar, 01/16/2007
- <Possible follow-up(s)>
-
Re: [freetds] new functionality,
ZIGLIO, Frediano, VF-IT, 01/17/2007
- Re: [freetds] new functionality, James K. Lowden, 01/20/2007
Archive powered by MHonArc 2.6.24.