[iotop/f16] fix typo in last patch

Michal Hlavinka mhlavink at fedoraproject.org
Fri Oct 14 17:06:01 UTC 2011


commit cdf0c2e79a60d93a40d86348c69e89a3c71632af
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Fri Oct 14 19:05:59 2011 +0200

    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 1cd3368..1755cda 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 <mhlavink at redhat.com> - 0.4.3-3
+- fix typo in last patch
+
 * Thu Oct 13 2011 Michal Hlavinka <mhlavink at redhat.com> - 0.4.3-2
 - after CVE-2011-2494 fix, iotop needs root privileges
 


More information about the scm-commits mailing list