aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorEugene V. Lyubimkin <jackyf@debian.org>2012-07-30 19:12:16 +0300
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:31 +0200
commita3ff14ad00cd9d4082fec909920ec4a0651e36e0 (patch)
tree2ba05c4ae454bde7046342fd9c2f2259d056d0a2 /debian/patches
parent283008ba7667dcbd771707c7245e6d42acd72478 (diff)
downloaddebian_htop-a3ff14ad00cd9d4082fec909920ec4a0651e36e0.tar.gz
debian_htop-a3ff14ad00cd9d4082fec909920ec4a0651e36e0.tar.bz2
debian_htop-a3ff14ad00cd9d4082fec909920ec4a0651e36e0.zip
Imported Debian patch 1.0.1-2debian/1.0.1-2
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/200-dont-delete-htoprc-if-symlink.patch17
-rw-r--r--debian/patches/series1
2 files changed, 18 insertions, 0 deletions
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy