--- lib/setupwindow.lib.orig 2015-05-12 22:33:57 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 }