rpms/htop/F-8 htop-0.8.1-nonprint.patch, NONE, 1.1 htop.spec, 1.15, 1.16

Rafał Psota rafalzaq at fedoraproject.org
Tue Nov 18 11:39:24 UTC 2008


Author: rafalzaq

Update of /cvs/pkgs/rpms/htop/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22203

Modified Files:
	htop.spec 
Added Files:
	htop-0.8.1-nonprint.patch 
Log Message:
non-printable character filter patch (#504144)

htop-0.8.1-nonprint.patch:

--- NEW FILE htop-0.8.1-nonprint.patch ---
--- RichString.c.orig	2008-03-09 03:23:49.000000000 +0100
+++ RichString.c	2008-11-18 12:30:21.000000000 +0100
@@ -89,7 +89,7 @@
 inline void RichString_appendn(RichString* this, int attrs, char* data_c, int len) {
    int last = MIN(RICHSTRING_MAXLEN - 1, len + this->len);
    for (int i = this->len, j = 0; i < last; i++, j++)
-      this->chstr[i] = data_c[j] | attrs;
+      this->chstr[i] = ((data_c[j] > 31) ? data_c[j] : '?' ) | attrs;
    this->chstr[last] = 0;
    this->len = last;
 }


Index: htop.spec
===================================================================
RCS file: /cvs/pkgs/rpms/htop/F-8/htop.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- htop.spec	14 Oct 2008 18:26:58 -0000	1.15
+++ htop.spec	18 Nov 2008 11:38:52 -0000	1.16
@@ -1,6 +1,6 @@
 Name:           htop
 Version:        0.8.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Interactive process viewer
 Summary(pl):    Interaktywna przeglądarka procesów
 
@@ -8,6 +8,7 @@
 License:        GPL+
 URL:            http://htop.sourceforge.net/
 Source0:        http://download.sourceforge.net/htop/%{name}-%{version}.tar.gz
+Patch0:         %{name}-0.8.1-nonprint.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  desktop-file-utils
@@ -24,6 +25,7 @@
 
 %prep
 %setup -q
+%patch0 -p0
 sed -i s#"INSTALL_DATA = @INSTALL_DATA@"#"INSTALL_DATA = @INSTALL_DATA@ -p"# Makefile.in
 sed -i -e '2,3d' -e '9d' htop.desktop
 
@@ -40,7 +42,7 @@
         --dir $RPM_BUILD_ROOT%{_datadir}/applications \
         --vendor fedora \
         --delete-original \
-        --remove-category=Application \
+        --remove-category=Application\
         $RPM_BUILD_ROOT%{_datadir}/applications/htop.desktop
 
 #remove empty direcories
@@ -61,6 +63,8 @@
 
 
 %changelog
+* Tue Nov 18 2008 Rafał Psota <rafalzaq at gmail.com> - 0.8.1-2
+- non-printable character filter patch (#504144)
 * Tue Oct 14 2008 Rafał Psota <rafalzaq at gmail.com> - 0.8.1-1
 - update to 0.8.1
 * Thu Jul 31 2008 Rafał Psota <rafalzaq at gmail.com> - 0.8-1




More information about the fedora-extras-commits mailing list