mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 13:40:34 -04:00
Upgrade to latest stable version 4.2.10 on that occasion. PR: 209418 Reported by: iluxa (at) ex.ua Approved by: antoine (mentor, implicit)
19 lines
988 B
Text
19 lines
988 B
Text
--- lib/setupwindow.lib.orig 2016-01-03 22:16:17 UTC
|
|
+++ lib/setupwindow.lib
|
|
@@ -36,7 +36,7 @@ ncs()
|
|
}
|
|
ncns()
|
|
{
|
|
- if [ "$POL_OS" = "Mac" -o "$(POL_Config_Read FORCE_LEGACY_NETCAT)" = "TRUE" ]; then
|
|
+ if [ "$POL_OS" != "Linux" -o "$(POL_Config_Read FORCE_LEGACY_NETCAT)" = "TRUE" ]; then
|
|
nc "$@"
|
|
else
|
|
nc -q -1 "$@" 2> /dev/null || nc "$@"
|
|
@@ -178,6 +178,7 @@ POL_SetupWindow_download ()
|
|
# If provided, make sure the filename is absolute to avoid any misinterpretation from server
|
|
|
|
[ -n "$4" ] && FILENAME="$4" || FILENAME="$PWD/"
|
|
+echo "$POL_COOKIE POL_SetupWindow_download $$ $(POL_Untab "$1") $(POL_Untab "$2") $3 $(POL_Untab "$FILENAME")" \| ncns "$POL_HOST $POL_PORT" > /tmp/x.log
|
|
Result="$(echo "$POL_COOKIE POL_SetupWindow_download $$ $(POL_Untab "$1") $(POL_Untab "$2") $3 $(POL_Untab "$FILENAME")" | ncns "$POL_HOST" "$POL_PORT")"
|
|
# FIXME: Result should send 'fail' if the download has failed. Maybe we could catch it
|
|
}
|