Date: Sat, 04 Feb 2006 15:17:13 +0100 From: Torfinn Ingolfsen <tingo@start.no> To: FreeBSD gnats submit <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/92804: mozplugger doesn't find /usr/local/etc/mozpluggerrc Message-ID: <1139062633.90179@kg-work.kg4.no> Resent-Message-ID: <200602041420.k14EK4k0024231@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@kg-work.kg4.no:/usr/obj/usr/src/sys/SS51G root@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1139062633.90179>