mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
corrected alphabetical order of options (proxy-auth); bad conditional with token
This commit is contained in:
parent
780b4028fe
commit
5251c21479
4 changed files with 10 additions and 10 deletions
4
CHANGES
4
CHANGES
|
@ -16,6 +16,10 @@ corrections:
|
||||||
additional empty arguments (thanks to Olivier Hervieu for reporting
|
additional empty arguments (thanks to Olivier Hervieu for reporting
|
||||||
this bug)
|
this bug)
|
||||||
|
|
||||||
|
corrected alphabetical order of options (proxy-auth)
|
||||||
|
|
||||||
|
some minor corrections
|
||||||
|
|
||||||
improved test.sh script
|
improved test.sh script
|
||||||
|
|
||||||
####################### V 1.6.0.1:
|
####################### V 1.6.0.1:
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
"1.6.0.1+ip4bind+recvfromfork+x64+execstderr+execspaces"
|
"1.6.0.1+ip4bind+recvfromfork+x64+execstderr+execspaces+cosmetics"
|
||||||
|
|
|
@ -20,7 +20,7 @@ int procan_cdefs(FILE *outfile) {
|
||||||
fprintf(outfile, "#define FD_SETSIZE %u\n", FD_SETSIZE);
|
fprintf(outfile, "#define FD_SETSIZE %u\n", FD_SETSIZE);
|
||||||
#endif
|
#endif
|
||||||
#ifdef NFDBITS
|
#ifdef NFDBITS
|
||||||
fprintf(outfile, "#define NFDBITS %u\n", (unsigned int)NFDBITS);
|
fprintf(outfile, "#define NFDBITS "F_Zu"\n", NFDBITS);
|
||||||
#endif
|
#endif
|
||||||
#ifdef O_RDONLY
|
#ifdef O_RDONLY
|
||||||
fprintf(outfile, "#define O_RDONLY %u\n", O_RDONLY);
|
fprintf(outfile, "#define O_RDONLY %u\n", O_RDONLY);
|
||||||
|
|
12
xioopts.c
12
xioopts.c
|
@ -1046,8 +1046,8 @@ const struct optname optionnames[] = {
|
||||||
#ifdef SO_PROTOTYPE
|
#ifdef SO_PROTOTYPE
|
||||||
IF_SOCKET ("prototype", &opt_so_prototype)
|
IF_SOCKET ("prototype", &opt_so_prototype)
|
||||||
#endif
|
#endif
|
||||||
IF_PROXY ("proxy-authorization", &opt_proxy_authorization)
|
|
||||||
IF_PROXY ("proxy-auth", &opt_proxy_authorization)
|
IF_PROXY ("proxy-auth", &opt_proxy_authorization)
|
||||||
|
IF_PROXY ("proxy-authorization", &opt_proxy_authorization)
|
||||||
IF_PROXY ("proxy-resolve", &opt_proxy_resolve)
|
IF_PROXY ("proxy-resolve", &opt_proxy_resolve)
|
||||||
IF_PROXY ("proxyauth", &opt_proxy_authorization)
|
IF_PROXY ("proxyauth", &opt_proxy_authorization)
|
||||||
IF_PROXY ("proxyport", &opt_proxyport)
|
IF_PROXY ("proxyport", &opt_proxyport)
|
||||||
|
@ -1304,7 +1304,7 @@ const struct optname optionnames[] = {
|
||||||
#ifdef SO_USELOOPBACK /* AIX433, Solaris */
|
#ifdef SO_USELOOPBACK /* AIX433, Solaris */
|
||||||
IF_SOCKET ("so-useloopback", &opt_so_useloopback)
|
IF_SOCKET ("so-useloopback", &opt_so_useloopback)
|
||||||
#endif /* SO_USELOOPBACK */
|
#endif /* SO_USELOOPBACK */
|
||||||
IF_SOCKS4 ("socksport", &opt_socksport)
|
IF_SOCKS4 ("socksport", &opt_socksport)
|
||||||
IF_SOCKS4 ("socksuser", &opt_socksuser)
|
IF_SOCKS4 ("socksuser", &opt_socksuser)
|
||||||
IF_IPAPP ("sourceport", &opt_sourceport)
|
IF_IPAPP ("sourceport", &opt_sourceport)
|
||||||
IF_IPAPP ("sp", &opt_sourceport)
|
IF_IPAPP ("sp", &opt_sourceport)
|
||||||
|
@ -1714,12 +1714,8 @@ int parseopts_table(const char **a, unsigned int groups, struct opt **opts,
|
||||||
case TYPE_BYTE:
|
case TYPE_BYTE:
|
||||||
{
|
{
|
||||||
unsigned long ul;
|
unsigned long ul;
|
||||||
if (token) {
|
char *rest;
|
||||||
char *rest;
|
ul = strtoul(token, &rest/*!*/, 0);
|
||||||
ul = strtoul(token, &rest/*!*/, 0);
|
|
||||||
} else {
|
|
||||||
ul = 1;
|
|
||||||
}
|
|
||||||
if (ul > UCHAR_MAX) {
|
if (ul > UCHAR_MAX) {
|
||||||
Error3("parseopts(%s): byte value exceeds limit (%lu vs. %u), using max",
|
Error3("parseopts(%s): byte value exceeds limit (%lu vs. %u), using max",
|
||||||
a0, ul, UCHAR_MAX);
|
a0, ul, UCHAR_MAX);
|
||||||
|
|
Loading…
Reference in a new issue