From 19fee68208b0f7514d3131f4c66806f464835041 Mon Sep 17 00:00:00 2001 From: juandon Date: Sun, 23 Mar 2003 19:36:17 +0000 Subject: [PATCH] - CONFIG_DIR support Changed files: bluez-utils-home_etc.patch -> 1.1 --- bluez-utils-home_etc.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bluez-utils-home_etc.patch diff --git a/bluez-utils-home_etc.patch b/bluez-utils-home_etc.patch new file mode 100644 index 0000000..f34761f --- /dev/null +++ b/bluez-utils-home_etc.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 *config_dir = getenv("CONFIG_DIR"); ++ if (config_dir) ++ snprintf(file, MAXPATHLEN, "%s/bluetooth/rfcomm.conf", config_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"); -- 2.44.0