diff options
| author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-06-17 16:22:25 +0200 |
|---|---|---|
| committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-06-17 16:22:25 +0200 |
| commit | f31ebd2e0aafc9404c95b8fe92a02d58216f918d (patch) | |
| tree | 863bcec0713704b8aeb567e0e461e61816fe023e /lib/CommLayer/CommLayerServerSocket.cpp | |
| parent | 121e36536d05b32af17af3d513ffc96548d84381 (diff) | |
| download | abrt-f31ebd2e0aafc9404c95b8fe92a02d58216f918d.tar.gz abrt-f31ebd2e0aafc9404c95b8fe92a02d58216f918d.tar.xz abrt-f31ebd2e0aafc9404c95b8fe92a02d58216f918d.zip | |
new default socket path
Diffstat (limited to 'lib/CommLayer/CommLayerServerSocket.cpp')
| -rw-r--r-- | lib/CommLayer/CommLayerServerSocket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CommLayer/CommLayerServerSocket.cpp b/lib/CommLayer/CommLayerServerSocket.cpp index 3857194..dd00489 100644 --- a/lib/CommLayer/CommLayerServerSocket.cpp +++ b/lib/CommLayer/CommLayerServerSocket.cpp @@ -170,14 +170,14 @@ CCommLayerServerSocket::CCommLayerServerSocket() int len; struct sockaddr_un local; - unlink(SOCKET_PATH); + unlink(SOCKET_FILE); if ((m_nSocket = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) { throw CABRTException(EXCEP_FATAL, "CCommLayerServerSocket::CCommLayerServerSocket(): Can not create socket."); } fcntl(m_nSocket, F_SETFD, FD_CLOEXEC); local.sun_family = AF_UNIX; - strcpy(local.sun_path, SOCKET_PATH); + strcpy(local.sun_path, SOCKET_FILE); len = strlen(local.sun_path) + sizeof(local.sun_family); if (bind(m_nSocket, (struct sockaddr *)&local, len) == -1) { @@ -187,7 +187,7 @@ CCommLayerServerSocket::CCommLayerServerSocket() { throw CABRTException(EXCEP_FATAL, "CCommLayerServerSocket::CCommLayerServerSocket(): Can not listen on the socket."); } - chmod(SOCKET_PATH, SOCKET_PERMISSION); + chmod(SOCKET_FILE, SOCKET_PERMISSION); m_pGSocket = g_io_channel_unix_new(m_nSocket); if (!g_io_add_watch(m_pGSocket, |
