Subject: pkg/11862: Bluefish package broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jmcneill@invisible.yi.org>
List: netbsd-bugs
Date: 12/31/2000 11:52:14
>Number: 11862
>Category: pkg
>Synopsis: Bluefish package unable to create configuration directory
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 31 11:52:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Jared D. McNeill
>Release: Appx. Dec 30, 2000 <NetBSD-current source date>
>Organization:
Student - Computer Programming Technology
New Brunswick Community College, Saint John
>Environment:
System: NetBSD sun.invisible.ca 1.5Q NetBSD 1.5Q (SUN) #1: Sat Dec 30 23:14:39 AST 2000 jmcneill@sun.invisible.ca:/usr/src/sys/arch/i386/compile/SUN i386
Architecture: i386
Machine: i386
>Description:
Bluefish 0.6 package is unable to create its configuration directory
at run-time.
This patch has already been sent to the author of bluefish and the
author has commited it to the bluefish CVS tree for inclusion in
later releases.
>How-To-Repeat:
Run 'bluefish' and watch the errors on stdout.
>Fix:
--- src/init.c.orig Tue Dec 26 23:15:00 2000
+++ src/init.c Tue Dec 26 23:15:40 2000
@@ -166,8 +166,8 @@
/* another g_get_home_dir () */
homedir = g_get_home_dir();
DEBUG_MSG("check_directories, homedir=%s\n", homedir);
- chk_dir(strncat(strncpy(name, homedir, PATH_MAX), "/.bluefish/", PATH_MAX));
- chk_dir(strncat(strncpy(name, homedir, PATH_MAX), "/.bluefish/projects/", PATH_MAX));
+ chk_dir(strncat(strncpy(name, homedir, PATH_MAX), "/.bluefish", PATH_MAX));
+ chk_dir(strncat(strncpy(name, homedir, PATH_MAX), "/.bluefish/projects", PATH_MAX));
chk_link(strncat(strncpy(name, homedir, PATH_MAX), "/.bluefish/php3_functions", PATH_MAX),
strncat(strncpy(name2, PKGDATADIR, PATH_MAX), "/php3_functions", PATH_MAX));
chk_link(strncat(strncpy(name, homedir, PATH_MAX), "/.bluefish/ssi_functions", PATH_MAX),
>Release-Note:
>Audit-Trail:
>Unformatted: