From a8da62da500e31cc1e25cab2a73afe762e956daf Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Wed, 4 Sep 2013 15:37:13 +0200 Subject: [PATCH] Better output in cron mode. e.g. --- nginx --- Available update(s): 1.3.5p2 1.2.3p2 nginx: A problem exists in nginx if proxy_pass is used with untrusted HTTP backend servers. The problem may lead to a denial of service or a disclosure of a worker process memory on a specially crafted response from an upstream proxied server. --- openup | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openup b/openup index cb43ccd..74894de 100755 --- a/openup +++ b/openup @@ -37,7 +37,7 @@ usage() { echo "Usage: ${0##*/} [-K][-Sn|c]" >&2 echo echo "Options:" - echo " -K do not check for kernel binpatches (when running non GENERIC)" + echo " -K do not check for kernel binpatches (when running non GENERIC) - NOT YET" echo " -S do not check for package signatures" echo " -n dry-run mode, no modification is done" echo @@ -50,7 +50,7 @@ pr_error() { } if [ "$(id -u)" -ne 0 ]; then - pr_error "need root privileges to run this script" + pr_error "Need root privileges to run this script" usage fi @@ -185,7 +185,8 @@ check_vuxml() { for p in ${_BP_OUTDATED} ${_PKG_OUTDATED} do - pr_bigarrow "${p} <" + echo "--- ${p} ---\n" + echo "Available update(s): " # XXX how do we print only the 1st matching range in awk? awk "/${p}<\/name>/,/<\/vuln>/" ${_TMPVUXML} | \ sed '/<\/vuln>/,$d' | \