ALT Linux repositórios
Group :: Sistema/Servidores
RPM: irda-utils
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: irda-utils-0.9.10-rootonly.patch
Download
Download
diff -rubB irda-utils-0.9.16.orig/irdadump/shell/main.c irda-utils-0.9.16/irdadump/shell/main.c
--- irda-utils-0.9.16.orig/irdadump/shell/main.c 2004-04-01 00:55:43 +0300
+++ irda-utils-0.9.16/irdadump/shell/main.c 2004-04-13 17:46:40 +0300
@@ -86,6 +86,11 @@
#endif
int fd, c;
+ if(geteuid()) {
+ puts("You need to be root to run this utility.\n");
+ return 1;
+ }
+
while ((c = getopt(argc, argv, "bc:df:i:lps:tvx?")) != -1) {
switch (c) {
case 'b': /* Dumb bytes */