Bug 17868 - Fix for a coredump in irdadump
Fix for a coredump in irdadump
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: irda-utils (Show other bugs)
7.0
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-09-26 15:11 EDT by Kjartan Maraas
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-10-01 18:14:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Kjartan Maraas 2000-09-26 15:11:27 EDT
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 18:14:39 EDT
Fixing...
Comment 2 Bernhard Rosenkraenzer 2000-10-01 18:19:33 EDT
Fixed in 0.9.10-10

Note You need to log in before you can comment on or make changes to this bug.