Permalink
Browse files

improve error message, Zendesk #1400

  • Loading branch information...
1 parent be8cd4f commit b528237f46e94746384d5e5b3baa26cfa0190932 Eystein Måløy Stenberg committed Jul 18, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 libcfnet/client_code.c
View
@@ -799,7 +799,7 @@ int EncryptCopyRegularFileNet(const char *source, const char *dest, off_t size,
if ((dd = safe_open(dest, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL | O_BINARY, 0600)) == -1)
{
Log(LOG_LEVEL_ERR,
- "NetCopy to destination '%s:%s' security - failed attempt to exploit a race? (Not copied). (open: %s)",
+ "Copy from server '%s' to destination '%s' failed (open: %s)",
conn->this_server, dest, GetErrorStr());
unlink(dest);
return false;
@@ -951,7 +951,7 @@ int CopyRegularFileNet(const char *source, const char *dest, off_t size, bool en
if ((dd = safe_open(dest, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL | O_BINARY, 0600)) == -1)
{
Log(LOG_LEVEL_ERR,
- "NetCopy to destination '%s:%s' security - failed attempt to exploit a race? (Not copied) (open: %s)",
+ "Copy from server '%s' to destination '%s' failed (open: %s)",
conn->this_server, dest, GetErrorStr());
unlink(dest);
return false;

0 comments on commit b528237

Please sign in to comment.