mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
@@ -350,7 +350,7 @@ static int write_blob(FILE *f, const void *data, size_t size) {
|
||||
}
|
||||
|
||||
if (fwrite(data, 1, size, f) != size)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EIO), "Failed to write credential data: %m");
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EIO), "Failed to write credential data.");
|
||||
|
||||
r = print_newline(f, data, size);
|
||||
if (r < 0)
|
||||
|
||||
@@ -206,7 +206,7 @@ static int create_edit_temp_file(EditFile *e, const char *contents, size_t conte
|
||||
if (e->context->stdin) {
|
||||
if (fwrite(contents, 1, contents_size, f) != contents_size)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EIO),
|
||||
"Failed to copy input to temporary file '%s': %m", temp);
|
||||
"Failed to copy input to temporary file '%s'.", temp);
|
||||
} else {
|
||||
r = populate_edit_temp_file(e, f, temp);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user