]> git.pld-linux.org Git - packages/bluez.git/blob - bluez-etc_dir.patch
- rel 4
[packages/bluez.git] / bluez-etc_dir.patch
1 diff -Nru bluez-4.53/tools/parser.y.orig bluez-4.53/tools/parser.y
2 --- bluez-4.53/tools/parser.y.orig      Thu Oct 31 10:09:48 2002
3 +++ bluez-4.53/tools/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"));
9 +               char *etc_dir = getenv("HOME_ETC");
10 +               if (etc_dir)
11 +                       snprintf(file, MAXPATHLEN, "%s/.bluetooth/rfcomm.conf", etc_dir);
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.031934 seconds and 3 git commands to generate.