From: juandon Date: Mon, 7 Apr 2003 12:21:34 +0000 (+0000) Subject: - s/CONFIG_DIR/ETC_DIR/ X-Git-Tag: auto/ac/bluez-utils-2_3-1~16 X-Git-Url: https://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=56a4e2c1971d1eb10c18b4ae74f3d7d40c08a701;p=packages%2Fbluez-utils.git - s/CONFIG_DIR/ETC_DIR/ - s/home_etc/etc_dir/ Changed files: bluez-utils-etc_dir.patch -> 1.1 --- diff --git a/bluez-utils-etc_dir.patch b/bluez-utils-etc_dir.patch new file mode 100644 index 0000000..82aa7d9 --- /dev/null +++ b/bluez-utils-etc_dir.patch @@ -0,0 +1,16 @@ +diff -Nru bluez-utils-2.2/rfcomm/parser.y bluez-utils-2.2.new/rfcomm/parser.y +--- bluez-utils-2.2/rfcomm/parser.y Thu Oct 31 10:09:48 2002 ++++ bluez-utils-2.2.new/rfcomm/parser.y Sun Mar 23 18:18:14 2003 +@@ -147,7 +147,11 @@ + if (filename) { + snprintf(file, MAXPATHLEN, "%s", filename); + } else { +- snprintf(file, MAXPATHLEN, "%s/.bluetooth/rfcomm.conf", getenv("HOME")); ++ char *etc_dir = getenv("ETC_DIR"); ++ if (etc_dir) ++ snprintf(file, MAXPATHLEN, "%s/bluetooth/rfcomm.conf", etc_dir); ++ else ++ snprintf(file, MAXPATHLEN, "%s/.bluetooth/rfcomm.conf", getenv("HOME")); + + if ((getuid() == 0) || (access(file, R_OK) < 0)) + snprintf(file, MAXPATHLEN, "/etc/bluetooth/rfcomm.conf");