[SCM] BOINC packaging branch, master, updated. debian/6.10.17+dfsg-3-308-geb5f029

Steffen Moeller moeller at debian.org
Sun Sep 11 13:57:46 UTC 2011


The following commit has been merged in the master branch:
commit a3c363eac69ece91e2310b0035df7b4b8cb5da71
Author: Steffen Moeller <moeller at debian.org>
Date:   Sat Sep 10 17:49:59 2011 +0200

    Some extra to stripchart.

diff --git a/debian/patches/stripchart_security.patch b/debian/patches/stripchart_security.patch
new file mode 100644
index 0000000..0a596e1
--- /dev/null
+++ b/debian/patches/stripchart_security.patch
@@ -0,0 +1,50 @@
+Index: boinc/stripchart/samples/get_load
+===================================================================
+--- boinc.orig/stripchart/samples/get_load	2011-09-10 17:39:14.000000000 +0200
++++ boinc/stripchart/samples/get_load	2011-09-10 17:40:12.000000000 +0200
+@@ -1,11 +1,11 @@
+-#! /bin/csh 
++#!/bin/sh 
+ 
+-set UPTIME = `/usr/bin/uptime | awk '{print $10}' | sed s/,//`
+-if ($UPTIME == "average:") then
+-  set UPTIME = `/usr/bin/uptime | awk '{print $11}' | sed s/,//`
+-endif
++UPTIME=`uptime | awk '{print $10}' | sed s/,//`
++if [ "$UPTIME" = "average:"]; then
++  UPTIME=`uptime | awk '{print $11}' | sed s/,//`
++fi
+ 
+-set CIVDATE = `/bin/date "+%Y:%m:%d:%H:%M"`
+-set UNIXDATE = `/usr/local/bin/perl -e 'print time()'`
++CIVDATE=`date "+%Y:%m:%d:%H:%M"`
++UNIXDATE=`perl -e 'print time()'`
+ 
+ echo $CIVDATE $UNIXDATE $UPTIME
+Index: boinc/stripchart/samples/parse_config
+===================================================================
+--- boinc.orig/stripchart/samples/parse_config	2011-09-10 17:39:14.000000000 +0200
++++ boinc/stripchart/samples/parse_config	2011-09-10 17:40:12.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python
+ 
+ # -*- mode: python; python-indent: 4; -*-
+ 
+Index: boinc/stripchart/samples/dir_size
+===================================================================
+--- boinc.orig/stripchart/samples/dir_size	2011-09-10 17:40:20.000000000 +0200
++++ boinc/stripchart/samples/dir_size	2011-09-10 17:45:45.000000000 +0200
+@@ -1,8 +1,8 @@
+-#! /bin/csh 
++#!/bin/sh 
+ 
+-set SIZE = `du -sk $1 | awk '{print $1*1024}'`
++SIZE=`du -sk $1 | awk '{print $1*1024}'`
+ 
+-set CIVDATE = `/bin/date "+%Y:%m:%d:%H:%M"`
+-set UNIXDATE = `/usr/local/bin/perl -e 'print time()'`
++CIVDATE=`date "+%Y:%m:%d:%H:%M"`
++UNIXDATE=`perl -e 'print time()'`
+ 
+ echo $CIVDATE $UNIXDATE $SIZE

-- 
BOINC packaging



More information about the pkg-boinc-commits mailing list