From a3ff14ad00cd9d4082fec909920ec4a0651e36e0 Mon Sep 17 00:00:00 2001 From: "Eugene V. Lyubimkin" Date: Mon, 30 Jul 2012 19:12:16 +0300 Subject: Imported Debian patch 1.0.1-2 --- debian/changelog | 8 ++++++++ debian/patches/200-dont-delete-htoprc-if-symlink.patch | 17 +++++++++++++++++ debian/patches/series | 1 + 3 files changed, 26 insertions(+) create mode 100644 debian/patches/200-dont-delete-htoprc-if-symlink.patch diff --git a/debian/changelog b/debian/changelog index 8fee630..c601794 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +htop (1.0.1-2) unstable; urgency=low + + * debian/patches: + - New patch 200-dont-delete-htoprc-if-symlink.patch from upstream VCS. + (Closes: #662087) + + -- Eugene V. Lyubimkin Mon, 30 Jul 2012 19:12:16 +0300 + htop (1.0.1-1) unstable; urgency=low * New upstream release. diff --git a/debian/patches/200-dont-delete-htoprc-if-symlink.patch b/debian/patches/200-dont-delete-htoprc-if-symlink.patch new file mode 100644 index 0000000..982d87b --- /dev/null +++ b/debian/patches/200-dont-delete-htoprc-if-symlink.patch @@ -0,0 +1,17 @@ +Taken from upstream: http://htop.svn.sourceforge.net/viewvc/htop/trunk/Settings.c?view=patch&r1=286&r2=285&pathrev=286 + +Don't delete an old .htoprc if it's a symlink. + +--- trunk/Settings.c 2012/02/17 13:45:58 285 ++++ trunk/Settings.c 2012/03/05 11:12:58 286 +@@ -239,7 +239,9 @@ + mkdir(htopDir, 0700); + free(htopDir); + free(configDir); +- if (access(legacyDotfile, R_OK) != 0) { ++ struct stat st; ++ lstat(legacyDotfile, &st); ++ if (access(legacyDotfile, R_OK) != 0 || S_ISLNK(st.st_mode)) { + free(legacyDotfile); + legacyDotfile = NULL; + } diff --git a/debian/patches/series b/debian/patches/series index c8aa567..6c4f8a8 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ +200-dont-delete-htoprc-if-symlink.patch 600-openvz-veid-on-kernels-gt-2.6.18.patch 700-ltrace-support.patch -- cgit v1.2.3