mirror of
https://github.com/moparisthebest/socat
synced 2024-12-22 06:58:47 -05:00
fixed some typos and minor issues, including Red Hat issue 1021967
This commit is contained in:
parent
dfdeaa4836
commit
a793c8047e
3
CHANGES
3
CHANGES
@ -45,6 +45,9 @@ corrections:
|
|||||||
Red Hat issue 1021972: fixed a missing NUL termination in return string
|
Red Hat issue 1021972: fixed a missing NUL termination in return string
|
||||||
of sysutils.c:sockaddr_info() for the AF_UNIX case
|
of sysutils.c:sockaddr_info() for the AF_UNIX case
|
||||||
|
|
||||||
|
fixed some typos and minor issues, including:
|
||||||
|
Red Hat issue 1021967: formatting error in manual page
|
||||||
|
|
||||||
porting:
|
porting:
|
||||||
Performed changes for Fedora release 19
|
Performed changes for Fedora release 19
|
||||||
|
|
||||||
|
2
README
2
README
@ -190,7 +190,7 @@ platform specifics - hp-ux
|
|||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
Ancillary messages cannot be compiled in with socat: both struct msghdr and
|
Ancillary messages cannot be compiled in with socat: both struct msghdr and
|
||||||
strutc cmsghdr are required. Compiling with -D_XOPEN_SOURCE_EXTENDED provides
|
struct cmsghdr are required. Compiling with -D_XOPEN_SOURCE_EXTENDED provides
|
||||||
struct msghdr but disables struct cmsghdr while -D_OPEN_SOURCE disables struct
|
struct msghdr but disables struct cmsghdr while -D_OPEN_SOURCE disables struct
|
||||||
msghdr but disables struct cmsghdr. Please contact socat development if you
|
msghdr but disables struct cmsghdr. Please contact socat development if you
|
||||||
know a solution.
|
know a solution.
|
||||||
|
@ -1708,7 +1708,8 @@ label(OPTION_SUBSTUSER)dit(bf(tt(su=<user>)))
|
|||||||
Changes the link(<user>)(TYPE_USER) (owner) and groups of the process after
|
Changes the link(<user>)(TYPE_USER) (owner) and groups of the process after
|
||||||
processing the address (link(example)(EXAMPLE_OPTION_SUBSTUSER)). This call might require root privilege.
|
processing the address (link(example)(EXAMPLE_OPTION_SUBSTUSER)). This call might require root privilege.
|
||||||
label(OPTION_SUBSTUSER_DELAYED)dit(bf(tt(su-d=<user>)))
|
label(OPTION_SUBSTUSER_DELAYED)dit(bf(tt(su-d=<user>)))
|
||||||
Short name for bf(tt(substuser-delayed)).
|
Short name for tt(substuser-delayed).
|
||||||
|
COMMENT(Short name for bf(tt(substuser-delayed) ).)
|
||||||
Changes the link(<user>)(TYPE_USER)
|
Changes the link(<user>)(TYPE_USER)
|
||||||
(owner) and groups of the process after processing the address (link(example)(EXAMPLE_OPTION_SUBSTUSER_DELAYED)).
|
(owner) and groups of the process after processing the address (link(example)(EXAMPLE_OPTION_SUBSTUSER_DELAYED)).
|
||||||
The user and his groups are retrieved em(before) a possible
|
The user and his groups are retrieved em(before) a possible
|
||||||
|
5
test.sh
5
test.sh
@ -45,6 +45,9 @@ _MICROS=$((MICROS+999999)); SECONDs="${_MICROS%??????}"
|
|||||||
withroot=0 # perform privileged tests even if not run by root
|
withroot=0 # perform privileged tests even if not run by root
|
||||||
#PATH=$PATH:/opt/freeware/bin
|
#PATH=$PATH:/opt/freeware/bin
|
||||||
#PATH=$PATH:/usr/local/ssl/bin
|
#PATH=$PATH:/usr/local/ssl/bin
|
||||||
|
case "$0" in
|
||||||
|
*/*) PATH="${0%/*}:$PATH"
|
||||||
|
esac
|
||||||
#OPENSSL_RAND="-rand /dev/egd-pool"
|
#OPENSSL_RAND="-rand /dev/egd-pool"
|
||||||
#SOCAT_EGD="egd=/dev/egd-pool"
|
#SOCAT_EGD="egd=/dev/egd-pool"
|
||||||
MISCDELAY=1
|
MISCDELAY=1
|
||||||
@ -224,7 +227,7 @@ ECHO="echo $E"
|
|||||||
PRINTF="printf"
|
PRINTF="printf"
|
||||||
|
|
||||||
case "$TERM" in
|
case "$TERM" in
|
||||||
vt100|vt320|linux|xterm|cons25|dtterm|aixterm|sun-color|xterm-color)
|
vt100|vt320|linux|xterm|cons25|dtterm|aixterm|sun-color|xterm-color|xterm-256color)
|
||||||
# there are different behaviours of printf (and echo)
|
# there are different behaviours of printf (and echo)
|
||||||
# on some systems, echo behaves different than printf...
|
# on some systems, echo behaves different than printf...
|
||||||
if [ $($PRINTF "\0101") = "A" ]; then
|
if [ $($PRINTF "\0101") = "A" ]; then
|
||||||
|
10
xio-socket.c
10
xio-socket.c
@ -1127,14 +1127,14 @@ void xiosigaction_hasread(int signum
|
|||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
Msg(wassig?E_INFO:E_WARN,
|
Msg(wassig?E_INFO:E_WARN,
|
||||||
"waitpid(-1, {}, WNOHANG): no child has exited");
|
"waitpid(-1, {}, WNOHANG): no child has exited");
|
||||||
Info("childdied() finished");
|
Info("xiosigaction_hasread() finished");
|
||||||
errno = _errno;
|
errno = _errno;
|
||||||
Debug("xiosigaction_hasread() ->");
|
Debug("xiosigaction_hasread() ->");
|
||||||
return;
|
return;
|
||||||
} else if (pid < 0 && errno == ECHILD) {
|
} else if (pid < 0 && errno == ECHILD) {
|
||||||
Msg1(wassig?E_INFO:E_WARN,
|
Msg1(wassig?E_INFO:E_WARN,
|
||||||
"waitpid(-1, {}, WNOHANG): %s", strerror(errno));
|
"waitpid(-1, {}, WNOHANG): %s", strerror(errno));
|
||||||
Info("childdied() finished");
|
Info("xiosigaction_hasread() finished");
|
||||||
errno = _errno;
|
errno = _errno;
|
||||||
Debug("xiosigaction_hasread() ->");
|
Debug("xiosigaction_hasread() ->");
|
||||||
return;
|
return;
|
||||||
@ -1142,7 +1142,7 @@ void xiosigaction_hasread(int signum
|
|||||||
wassig = true;
|
wassig = true;
|
||||||
if (pid < 0) {
|
if (pid < 0) {
|
||||||
Warn2("waitpid(-1, {%d}, WNOHANG): %s", status, strerror(errno));
|
Warn2("waitpid(-1, {%d}, WNOHANG): %s", status, strerror(errno));
|
||||||
Info("childdied() finished");
|
Info("xiosigaction_hasread() finished");
|
||||||
errno = _errno;
|
errno = _errno;
|
||||||
Debug("xiosigaction_hasread() ->");
|
Debug("xiosigaction_hasread() ->");
|
||||||
return;
|
return;
|
||||||
@ -1735,7 +1735,7 @@ int xiocheckpeer(xiosingle_t *xfd,
|
|||||||
#if WITH_IP6
|
#if WITH_IP6
|
||||||
if (pa->soa.sa_family == AF_INET6 &&
|
if (pa->soa.sa_family == AF_INET6 &&
|
||||||
ntohs(((struct sockaddr_in6 *)pa)->sin6_port) != xfd->para.socket.ip.sourceport) {
|
ntohs(((struct sockaddr_in6 *)pa)->sin6_port) != xfd->para.socket.ip.sourceport) {
|
||||||
Warn1("refusing connection from %s due to sourceport option",
|
Warn1("refusing connection from %s due to wrong sourceport",
|
||||||
sockaddr_info((struct sockaddr *)pa, 0,
|
sockaddr_info((struct sockaddr *)pa, 0,
|
||||||
infobuff, sizeof(infobuff)));
|
infobuff, sizeof(infobuff)));
|
||||||
return -1;
|
return -1;
|
||||||
@ -2085,7 +2085,7 @@ int xiosetsockaddrenv(const char *lr,
|
|||||||
|
|
||||||
/* these do sockets internally */
|
/* these do sockets internally */
|
||||||
|
|
||||||
/* retrieves options so-type and so-prototype from opts, calls socketpair, and
|
/* retrieves options so-type and so-prototype from opts, calls socket, and
|
||||||
ev. generates an appropriate error message.
|
ev. generates an appropriate error message.
|
||||||
returns 0 on success or -1 if an error occurred. */
|
returns 0 on success or -1 if an error occurred. */
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user