1 diff -Nru bluez-utils-2.2/rfcomm/parser.y bluez-utils-2.2.new/rfcomm/parser.y
2 --- bluez-utils-2.2/rfcomm/parser.y Thu Oct 31 10:09:48 2002
3 +++ bluez-utils-2.2.new/rfcomm/parser.y Sun Mar 23 18:18:14 2003
6 snprintf(file, MAXPATHLEN, "%s", filename);
8 - snprintf(file, MAXPATHLEN, "%s/.bluetooth/rfcomm.conf", getenv("HOME"));
9 + char *config_dir = getenv("CONFIG_DIR");
11 + snprintf(file, MAXPATHLEN, "%s/bluetooth/rfcomm.conf", config_dir);
13 + snprintf(file, MAXPATHLEN, "%s/.bluetooth/rfcomm.conf", getenv("HOME"));
15 if ((getuid() == 0) || (access(file, R_OK) < 0))
16 snprintf(file, MAXPATHLEN, "/etc/bluetooth/rfcomm.conf");