[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Add a missing / to the default debug destination path.
From: |
Christopher Brannon |
Subject: |
[PATCH] Add a missing / to the default debug destination path. |
Date: |
Thu, 19 Aug 2010 14:26:48 -0500 |
SSIP's SET DEBUG command wasn't working for me, because the pathname
of the default debug destination was missing a slash.
E.G., Speech Dispatcher was trying to write debugging output to files
under ~/.speech-dispatcherlog/debug, when it should be writing
to files under ~/.speech-dispatcher/log/debug.
---
src/server/speechd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/server/speechd.c b/src/server/speechd.c
index efba330..bb6a1df 100644
--- a/src/server/speechd.c
+++ b/src/server/speechd.c
@@ -628,7 +628,7 @@ speechd_init()
SpeechdOptions.log_dir = g_strdup_printf("%s/log/",
SpeechdOptions.home_speechd_dir);
mkdir(SpeechdOptions.log_dir, S_IRWXU);
if (!SpeechdOptions.debug_destination){
- SpeechdOptions.debug_destination = g_strdup_printf("%slog/debug",
+ SpeechdOptions.debug_destination = g_strdup_printf("%s/log/debug",
SpeechdOptions.home_speechd_dir);
mkdir(SpeechdOptions.debug_destination, S_IRWXU);
}
--
1.7.2.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Add a missing / to the default debug destination path.,
Christopher Brannon <=