Bug 17868

Summary: Fix for a coredump in irdadump
Product: [Retired] Red Hat Linux Reporter: Kjartan Maraas <kmaraas>
Component: irda-utilsAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 7.0Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-01 22:14:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kjartan Maraas 2000-09-26 19:11:27 UTC
This little patch fixes a coredump when this utility is run as a normal
user. Apply in
irda-utils-0.9.10/irdadump/shell/main.c

--- main.c	Wed Jan 19 11:06:23 2000
+++ main.c.rh	Tue Sep 26 21:04:14 2000
@@ -60,6 +60,11 @@
 	char *ifdev = NULL;
 	int c;
 
+	if (geteuid() != 0) {
+		printf("You need to be root to run this utility.\n");
+		return 1;
+	}
+			
 	while ((c = getopt(argc, argv, "i:dxs:l?")) != -1) {
 		switch (c) {
 		case 'd': /* Print diffs */

Comment 1 Bernhard Rosenkraenzer 2000-10-01 22:14:39 UTC
Fixing...

Comment 2 Bernhard Rosenkraenzer 2000-10-01 22:19:33 UTC
Fixed in 0.9.10-10