]> git.pld-linux.org Git - packages/bluez-utils.git/commitdiff
- s/CONFIG_DIR/ETC_DIR/
authorjuandon <witekfl@pld-linux.org>
Mon, 7 Apr 2003 12:21:34 +0000 (12:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- s/home_etc/etc_dir/

Changed files:
    bluez-utils-etc_dir.patch -> 1.1

bluez-utils-etc_dir.patch [new file with mode: 0644]

diff --git a/bluez-utils-etc_dir.patch b/bluez-utils-etc_dir.patch
new file mode 100644 (file)
index 0000000..82aa7d9
--- /dev/null
@@ -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");
This page took 0.131729 seconds and 4 git commands to generate.