Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37842624
en ru br
ALT Linux repos
S:0.8.5-alt1
5.0: 0.6.1-alt1

Group :: Monitoring
RPM: nethogs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: nethogs-0.8.0-debian-geteuid.patch
Download


--- ../orig/nethogs-0.7.0/nethogs.cpp	2009-03-12 22:28:14.000000000 +0100
+++ ./nethogs.cpp	2009-09-29 20:22:58.000000000 +0200
@@ -320,7 +320,7 @@
 		init_ui();
 	}
 
-	if (NEEDROOT && (getuid() != 0))
+	if (NEEDROOT && (geteuid() != 0))
 		forceExit("You need to be root to run NetHogs!");
 
 	char errbuf[PCAP_ERRBUF_SIZE];
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin