summaryrefslogtreecommitdiffstats
path: root/debian/patches/0001-use-su-to-root.patch
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/patches/0001-use-su-to-root.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/0001-use-su-to-root.patch b/debian/patches/0001-use-su-to-root.patch
new file mode 100644
index 0000000..1f06979
--- /dev/null
+++ b/debian/patches/0001-use-su-to-root.patch
@@ -0,0 +1,23 @@
+From: Hilko Bengen <bengen@debian.org>
+Date: Fri, 25 Apr 2014 09:51:17 +0200
+Subject: use su-to-root
+
+---
+ zenmap/install_scripts/unix/zenmap-root.desktop | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/zenmap/install_scripts/unix/zenmap-root.desktop b/zenmap/install_scripts/unix/zenmap-root.desktop
+index c5f4c10..f50029d 100644
+--- a/zenmap/install_scripts/unix/zenmap-root.desktop
++++ b/zenmap/install_scripts/unix/zenmap-root.desktop
+@@ -1,8 +1,8 @@
+ [Desktop Entry]
+ Name=Zenmap (as root)
+ GenericName=GUI Port Scanner
+-TryExec=su-to-zenmap.sh
+-Exec=su-to-zenmap.sh %F
++TryExec=pkexec
++Exec=pkexec /usr/bin/zenmap %F
+ Terminal=false
+ Icon=zenmap
+ Type=Application