fix typo in last patch

This commit is contained in:
Michal Hlavinka 2011-10-14 18:49:22 +02:00
parent 0600938b42
commit 1304c5ea5f
2 changed files with 5 additions and 2 deletions

View File

@ -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, '') locale.setlocale(locale.LC_ALL, '')
except locale.Error: except locale.Error:
print 'unable to set locale, falling back to the default locale' print 'unable to set locale, falling back to the default locale'
+ if os.getuid() != 1: + if os.getuid() != 0:
+ print 'root privileges required' + print 'root privileges required'
+ exit(1) + exit(1)
+ +

View File

@ -1,7 +1,7 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: iotop Name: iotop
Version: 0.4.3 Version: 0.4.3
Release: 2%{?dist} Release: 3%{?dist}
Summary: Top like utility for I/O Summary: Top like utility for I/O
Group: Applications/System Group: Applications/System
@ -49,6 +49,9 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog
* Fri Oct 14 2011 Michal Hlavinka <mhlavink@redhat.com> 0.4.3-3
- fix typo in last patch
* Thu Oct 13 2011 Michal Hlavinka <mhlavink@redhat.com> 0.4.3-2 * Thu Oct 13 2011 Michal Hlavinka <mhlavink@redhat.com> 0.4.3-2
- after CVE-2011-2494 fix, iotop needs root privileges - after CVE-2011-2494 fix, iotop needs root privileges