File: datadir.patch

package info (click to toggle)
pushover 1.1-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 38,932 kB
  • sloc: cpp: 12,253; ansic: 2,501; sh: 633; makefile: 235
file content (17 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: neuter portable_datadir
Forwarded: not needed
Author: Alexandre Detiste
Bug-Debian: https://bugs.debian.org/996484
diff --git a/src/domino-chain/main.cpp b/src/domino-chain/main.cpp
index 139784f..b7dd6bd 100644
--- a/src/domino-chain/main.cpp
+++ b/src/domino-chain/main.cpp
@@ -44,7 +44,7 @@ static std::string getDataDir(void)
   struct stat st;
   if (stat(portable_datadir.c_str(), &st) == 0) {
       std::cout << "Using portable datadir: " << portable_datadir << std::endl;
-      return portable_datadir;
+      return DATADIR;
   } else {
       std::cout << "Using system datadir: " << DATADIR << std::endl;
       return DATADIR;