mirror of
https://github.com/mirror/wget.git
synced 2025-03-25 01:00:13 +08:00
Add missing linefeed in output strings
* src/ftp.c (getftp): Add linefeed to error message. * src/res.c (res_parse_from_file): Likewise. * src/utils.c (fopen_stat): Likewise. (open_stat): Likewise.
This commit is contained in:
parent
6e5cf727c5
commit
9dacc2836a
@ -400,7 +400,7 @@ getftp (struct url *u, struct url *original_url,
|
||||
if (!ssl_init ())
|
||||
{
|
||||
scheme_disable (SCHEME_FTPS);
|
||||
logprintf (LOG_NOTQUIET, _("Could not initialize SSL. It will be disabled."));
|
||||
logprintf (LOG_NOTQUIET, _("Could not initialize SSL. It will be disabled.\n"));
|
||||
err = SSLINITFAILED;
|
||||
return err;
|
||||
}
|
||||
|
@ -391,7 +391,7 @@ res_parse_from_file (const char *filename)
|
||||
struct file_memory *fm = wget_read_file (filename);
|
||||
if (!fm)
|
||||
{
|
||||
logprintf (LOG_NOTQUIET, _("Cannot open %s: %s"),
|
||||
logprintf (LOG_NOTQUIET, _("Cannot open %s: %s\n"),
|
||||
filename, strerror (errno));
|
||||
return NULL;
|
||||
}
|
||||
|
@ -899,7 +899,7 @@ fopen_stat(const char *fname, const char *mode, file_stats_t *fstats)
|
||||
fdstats.st_ino != fstats->st_ino))
|
||||
{
|
||||
/* File changed since file_exists_p() : NOT SAFE */
|
||||
logprintf (LOG_NOTQUIET, _("File %s changed since the last check. Security check failed."), fname);
|
||||
logprintf (LOG_NOTQUIET, _("File %s changed since the last check. Security check failed.\n"), fname);
|
||||
fclose (fp);
|
||||
return NULL;
|
||||
}
|
||||
@ -950,7 +950,7 @@ open_stat(const char *fname, int flags, mode_t mode, file_stats_t *fstats)
|
||||
fdstats.st_ino != fstats->st_ino))
|
||||
{
|
||||
/* File changed since file_exists_p() : NOT SAFE */
|
||||
logprintf (LOG_NOTQUIET, _("Trying to open file %s but it changed since last check. Security check failed."), fname);
|
||||
logprintf (LOG_NOTQUIET, _("Trying to open file %s but it changed since last check. Security check failed.\n"), fname);
|
||||
close (fd);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user