ports/92804: mozplugger doesn't find /usr/local/etc/mozpluggerrc
Torfinn Ingolfsen
tingo at start.no
Sat Feb 4 14:20:05 UTC 2006
>Number: 92804
>Category: ports
>Synopsis: mozplugger doesn't find /usr/local/etc/mozpluggerrc
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 04 14:20:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Torfinn Ingolfsen
>Release: FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD 5.4-STABLE #5: Sat Dec 31 16:54:14 CET 2005
root at kg-work.kg4.no:/usr/obj/usr/src/sys/SS51G
root at kg-work# portversion -v | grep mozplugger
mozplugger-1.7.3 = up-to-date with port
>Description:
mozplugger doesn't find configuration file mozpluggerrc if it is paced in /usr/local/etc. The man page says it should
be able to do that.
Off-topic question:
when I send-pr bugs etc., should the 'Submitter-Id' field be set to something that is unique to me?
>How-To-Repeat:
- install mozplugger
- copy /usr/X11R6/etc/mozpluggerrc to /usr/local/etc
- start browser, go to "about:plugins" page, check where mozplugger finds the configuration file.
>Fix:
The patch in ../mozplugger/files/patch-mozplugger.c copies two lines of code, and inserts the "word" (variable) PREFIX before the directory string "/etc/%s". This doesn't, work.
I guess the intention of the patch was to allow mozplugger to search /usr/local/etc for mozpluggerrc. If my guess is correct, the patch below might work better:
--- mozplugger.c_org Mon Aug 29 23:08:04 2005
+++ mozplugger.c Sat Feb 4 14:34:53 2006
@@ -572,6 +572,9 @@
if (cb(fname, data)) return 1;
}
+ snprintf(fname, sizeof(fname), "/usr/local/etc/%s", basename);
+ if (cb(fname, data)) return 1;
+
snprintf(fname, sizeof(fname), "/etc/%s", basename);
if (cb(fname, data)) return 1;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list