diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-08-26 18:44:26 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-08-26 18:44:26 +0000 |
commit | cf90a36dd1085018bf774cfb5146f6b50e675b1b (patch) | |
tree | 97e94209c1b4a0035f4614cc3544c019c7cd638e /src/or/rendservice.c | |
parent | fa507c63e8841c912b0b54178198ed6ee9b976de (diff) | |
download | tor-cf90a36dd1085018bf774cfb5146f6b50e675b1b.tar.gz tor-cf90a36dd1085018bf774cfb5146f6b50e675b1b.zip |
Add quotes around filenames in src/or
svn:r4845
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 5511f46ab8..3bb86c2c09 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -122,7 +122,7 @@ add_service(rend_service_t *service) } else { smartlist_set_capacity(service->ports, -1); smartlist_add(rend_service_list, service); - log_fn(LOG_DEBUG,"Configuring service with directory %s",service->directory); + log_fn(LOG_DEBUG,"Configuring service with directory \"%s\"",service->directory); for (i = 0; i < smartlist_len(service->ports); ++i) { char addrbuf[INET_NTOA_BUF_LEN]; p = smartlist_get(service->ports, i); @@ -322,7 +322,7 @@ rend_service_load_keys(void) s = smartlist_get(rend_service_list,i); if (s->private_key) continue; - log_fn(LOG_INFO, "Loading hidden-service keys from '%s'", s->directory); + log_fn(LOG_INFO, "Loading hidden-service keys from \"%s\"", s->directory); /* Check/create directory */ if (check_private_dir(s->directory, CPD_CREATE) < 0) @@ -331,7 +331,7 @@ rend_service_load_keys(void) /* Load key */ if (strlcpy(fname,s->directory,sizeof(fname)) >= sizeof(fname) || strlcat(fname,"/private_key",sizeof(fname)) >= sizeof(fname)) { - log_fn(LOG_WARN, "Directory name too long: '%s'", s->directory); + log_fn(LOG_WARN, "Directory name too long: \"%s\"", s->directory); return -1; } s->private_key = init_key_from_file(fname); @@ -349,7 +349,7 @@ rend_service_load_keys(void) } if (strlcpy(fname,s->directory,sizeof(fname)) >= sizeof(fname) || strlcat(fname,"/hostname",sizeof(fname)) >= sizeof(fname)) { - log_fn(LOG_WARN, "Directory name too long: '%s'", s->directory); + log_fn(LOG_WARN, "Directory name too long: \"%s\"", s->directory); return -1; } tor_snprintf(buf, sizeof(buf),"%s.onion\n", s->service_id); @@ -1046,7 +1046,7 @@ rend_service_dump_stats(int severity) for (i=0; i < smartlist_len(rend_service_list); ++i) { service = smartlist_get(rend_service_list, i); - log(severity, "Service configured in %s:", service->directory); + log(severity, "Service configured in \"%s\":", service->directory); for (j=0; j < smartlist_len(service->intro_nodes); ++j) { nickname = smartlist_get(service->intro_nodes, j); router = router_get_by_nickname(smartlist_get(service->intro_nodes,j)); |