From 1304c5ea5fcf64f529f126b8b63fc83b4a52ec10 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Fri, 14 Oct 2011 18:49:22 +0200 Subject: [PATCH] fix typo in last patch --- iotop-0.4.3-rootpriv.patch | 2 +- iotop.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/iotop-0.4.3-rootpriv.patch b/iotop-0.4.3-rootpriv.patch index 1fa1567..fd3e02b 100644 --- a/iotop-0.4.3-rootpriv.patch +++ b/iotop-0.4.3-rootpriv.patch @@ -5,7 +5,7 @@ diff -up iotop-0.4.3/iotop/ui.py.rootpriv iotop-0.4.3/iotop/ui.py locale.setlocale(locale.LC_ALL, '') except locale.Error: print 'unable to set locale, falling back to the default locale' -+ if os.getuid() != 1: ++ if os.getuid() != 0: + print 'root privileges required' + exit(1) + diff --git a/iotop.spec b/iotop.spec index d6038cb..65b9464 100644 --- a/iotop.spec +++ b/iotop.spec @@ -1,7 +1,7 @@ %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: iotop Version: 0.4.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Top like utility for I/O Group: Applications/System @@ -49,6 +49,9 @@ rm -rf $RPM_BUILD_ROOT %{python_sitelib}/* %changelog +* Fri Oct 14 2011 Michal Hlavinka 0.4.3-3 +- fix typo in last patch + * Thu Oct 13 2011 Michal Hlavinka 0.4.3-2 - after CVE-2011-2494 fix, iotop needs root privileges