Well, it's just a matter of adding a check for
optarg being NULL and
printing an appropriate message (e.g.,
if (optarg == NULL) {
fprintf(stderr, Missing key-value
separator\n);
usage();
}
).
Yup looks easy but I may better patch the DLL to use
Dear Arturus,
regtool dosn't dpend on the Cygwin environment as it
can also run from the Windows command line without any
Cygwin souroundings.
What I was mentioning is that
rgetool -K
causes a core fault and something similar under
windows because the argument is broken. I know that
the argument
False. regtool is a cygwin app and depends on the
cygwin DLL:
Was my mistake as I run it within the Cygwin startup
bat as
E:\aIEngine\CYGWINbin\regtool
in order to set all the moutn points on computers
without CygWin installed.
Alex
=
That doesn't change the fact that it's still a
Cygwin application,
because it's linked against cygwin1.dll. Because
you have cygwin1.dll
on the system and in the same directory as
regtool.exe means it will be
found when you run regtool.
I got that. I just didn't check.
Why aren't you
It dosn't feel like a feature so it must be a Bug for
sure :)
Don't worry it's easy to reproduce:
bash-2.05b$ ./regtool -K
Segmentation fault (core dumped)
crashes with a core dump insteed of printing the usage
information while
regtool --key-seperator and regtool --key-seperator=
does the right
5 matches
Mail list logo