Просмотр исходного кода

libdpkg: Clarify fd_fd_copy error string in dpkg_ar_member_put_header

This makes the error string clearer, and as a side effect removes a
bogus warning due to the non literal format string, which is perfectly
fine here as it's under complete control from the programmer.

Reported-by: Sandro Cazzaniga <cazzaniga.sandro@gmail.com>
Guillem Jover лет назад: 16
Родитель
Сommit
309d92878a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/dpkg/ar.c

+ 1 - 1
lib/dpkg/ar.c

@@ -97,7 +97,7 @@ dpkg_ar_member_put_file(const char *ar_name, int ar_fd,
 	dpkg_ar_member_put_header(ar_name, ar_fd, name, st.st_size);
 
 	/* Copy data contents. */
-	fd_fd_copy(fd, ar_fd, -1, name);
+	fd_fd_copy(fd, ar_fd, -1, _("ar member file (%s)"), name);
 
 	if (st.st_size & 1)
 		if (write(ar_fd, "\n", 1) < 0)