]> git.pld-linux.org Git - packages/bluez-utils.git/blame - bluez-utils-etc_dir.patch
- ver. 3.9
[packages/bluez-utils.git] / bluez-utils-etc_dir.patch
CommitLineData
56a4e2c1 1diff -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
4@@ -147,7 +147,11 @@
5 if (filename) {
6 snprintf(file, MAXPATHLEN, "%s", filename);
7 } else {
8- snprintf(file, MAXPATHLEN, "%s/.bluetooth/rfcomm.conf", getenv("HOME"));
e93e9775 9+ char *etc_dir = getenv("HOME_ETC");
56a4e2c1 10+ if (etc_dir)
e93e9775 11+ snprintf(file, MAXPATHLEN, "%s/.bluetooth/rfcomm.conf", etc_dir);
56a4e2c1 12+ else
13+ snprintf(file, MAXPATHLEN, "%s/.bluetooth/rfcomm.conf", getenv("HOME"));
14
15 if ((getuid() == 0) || (access(file, R_OK) < 0))
16 snprintf(file, MAXPATHLEN, "/etc/bluetooth/rfcomm.conf");
This page took 0.025597 seconds and 4 git commands to generate.