summaryrefslogtreecommitdiff
path: root/src/mysql/mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysql/mysql.c')
-rw-r--r--src/mysql/mysql.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mysql/mysql.c b/src/mysql/mysql.c
index 68a75d083..918d24cf2 100644
--- a/src/mysql/mysql.c
+++ b/src/mysql/mysql.c
@@ -157,12 +157,10 @@ get_my_cnf_path(const struct GNUNET_CONFIGURATION_Handle *cfg,
157 char *home_dir; 157 char *home_dir;
158 struct stat st; 158 struct stat st;
159 159
160#ifndef WINDOWS
161 struct passwd *pw; 160 struct passwd *pw;
162#endif 161
163 int configured; 162 int configured;
164 163
165#ifndef WINDOWS
166 pw = getpwuid(getuid()); 164 pw = getpwuid(getuid());
167 if (!pw) 165 if (!pw)
168 { 166 {
@@ -185,13 +183,7 @@ get_my_cnf_path(const struct GNUNET_CONFIGURATION_Handle *cfg,
185 GNUNET_free(home_dir); 183 GNUNET_free(home_dir);
186 configured = GNUNET_NO; 184 configured = GNUNET_NO;
187 } 185 }
188#else 186
189 home_dir = (char *)GNUNET_malloc(_MAX_PATH + 1);
190 plibc_conv_to_win_path("~/", home_dir);
191 GNUNET_asprintf(&cnffile, "%s/.my.cnf", home_dir);
192 GNUNET_free(home_dir);
193 configured = GNUNET_NO;
194#endif
195 GNUNET_log_from(GNUNET_ERROR_TYPE_INFO, 187 GNUNET_log_from(GNUNET_ERROR_TYPE_INFO,
196 "mysql", 188 "mysql",
197 _("Trying to use file `%s' for MySQL configuration.\n"), 189 _("Trying to use file `%s' for MySQL configuration.\n"),