summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-06-17 16:22:25 +0200
committerZdenek Prikryl <zprikryl@redhat.com>2009-06-17 16:22:25 +0200
commitf31ebd2e0aafc9404c95b8fe92a02d58216f918d (patch)
tree863bcec0713704b8aeb567e0e461e61816fe023e /src
parent121e36536d05b32af17af3d513ffc96548d84381 (diff)
downloadabrt-f31ebd2e0aafc9404c95b8fe92a02d58216f918d.tar.gz
abrt-f31ebd2e0aafc9404c95b8fe92a02d58216f918d.tar.xz
abrt-f31ebd2e0aafc9404c95b8fe92a02d58216f918d.zip
new default socket path
Diffstat (limited to 'src')
-rw-r--r--src/CLI/CLI.cpp4
-rw-r--r--src/CLI/Makefile.am2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/CLI/CLI.cpp b/src/CLI/CLI.cpp
index 0700ebf3..d711c7d7 100644
--- a/src/CLI/CLI.cpp
+++ b/src/CLI/CLI.cpp
@@ -4,7 +4,7 @@
#include <string.h>
-#define SOCKET_PATH "/tmp/abrt.socket"
+#define SOCKET_FILE VAR_RUN"/abrt.socket"
typedef enum {HELP,
GET_LIST,
@@ -131,7 +131,7 @@ int main(int argc, char** argv)
try
{
- ABRTSocket.Connect(SOCKET_PATH);
+ ABRTSocket.Connect(SOCKET_FILE);
switch (param.m_Mode)
{
diff --git a/src/CLI/Makefile.am b/src/CLI/Makefile.am
index 78c3803f..08779c90 100644
--- a/src/CLI/Makefile.am
+++ b/src/CLI/Makefile.am
@@ -1,3 +1,3 @@
bin_PROGRAMS = abrt-cli
abrt_cli_SOURCES = ABRTSocket.cpp ABRTSocket.h CLI.cpp
-abrt_cli_CPPFLAGS = -I$(srcdir)/../../inc \ No newline at end of file
+abrt_cli_CPPFLAGS = -I$(srcdir)/../../inc -DVAR_RUN=\"$(VAR_RUN)\" \ No newline at end of file