File: 0001-use-su-to-root.patch

package info (click to toggle)
nmap 7.98%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,872 kB
  • sloc: cpp: 61,855; ansic: 31,545; python: 17,238; sh: 15,622; xml: 11,564; perl: 2,650; makefile: 966; java: 45; objc: 45
file content (23 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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..07eab78 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