~ubuntu-branches/debian/wheezy/dpkg/wheezy

« back to all changes in this revision

Viewing changes to lib/dpkg/error.c

  • Committer: Package Import Robot
  • Author(s): Guillem Jover, Guillem Jover, Updated programs translations, Updated scripts translations
  • Date: 2013-03-08 04:41:26 UTC
  • Revision ID: package-import@ubuntu.com-20130308044126-jfv2qqdz3elr5s4m
Tags: 1.16.10
[ Guillem Jover ]
* Fix typos in 1.16.9 changelog entry. Closes: #691954
  Thanks to Nicolás Alvarez <nicolas.alvarez@gmail.com>.
* Add missing @LIBLZMA_LIBS@ to Libs.Private in libdpkg.pc.in.
* Do not use an undefined va_list variable in dpkg_put_errno().
* Abort installation if we cannot set the security context for a file.
* Fix OpenPGP armored signature parsing, to be resilient against doctored
  input, including source package control files. Closes: #695919
* Make sure the OpenGPG armor contains a signature block, even on EOF.
* Do not accept Armor Header Lines inside a paragraph.
* Do not abort dselect when multiarch is detected, as that only makes
  users downgrade and hold on an older version w/ worse multiarch support.
* Fix warning in Dpkg::Source::Archive with «perl -w» due to redefinition
  of getcwd() by removing unused POSIX modules usage. Closes: #700978

[ Updated programs translations ]
* Esperanto (Felipe Castro).
* Spanish (Javier Fernández-Sanguino).
* Vietnamesea (Trần Ngọc Quân). Closes: #692100

[ Updated scripts translations ]
* Fix mistranslation in French translation of scripts.
  Thanks to Filipus Klutiero. Closes: #698530
* Fix typos in French translation of scripts.
  Thanks to Sylvestre Ledru. Closes: #702627
* Fix Russian translation (wrong order of parameters in a string).
  Thanks to Andrey Rahmatullin for noticing and Yuri Kozlov for fixing
  the translation. Closes: #698869

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
{
72
72
        va_list args;
73
73
        char *new_fmt;
74
 
        int errno_saved = errno;
 
74
 
 
75
        m_asprintf(&new_fmt, "%s (%s)", fmt, strerror(errno));
75
76
 
76
77
        va_start(args, fmt);
77
 
        m_asprintf(&new_fmt, "%s (%s)", fmt, strerror(errno_saved));
78
 
        va_end(args);
79
 
 
80
78
        dpkg_error_set(err, DPKG_MSG_ERROR, new_fmt, args);
 
79
        va_end(args);
81
80
 
82
81
        free(new_fmt);
83
82