Package: release.debian.org Severity: normal User: release.debian.org@packages.debian.org Usertags: unblock Dear RT, am I allowed to upload a package with the following debdiff? It fixes #512883 (which is RC). Thank you, David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
diff --git a/debian/changelog b/debian/changelog index 9c76be8..79b1f32 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +gphoto2 (2.4.5-3) unstable; urgency=low + + * Warn and exit with an error if files couldn't be written to + disk (Closes: #512883) + * Added myself to Uploaders + + -- David Paleino <dapal@debian.org> Sun, 14 Nov 2010 17:14:36 +0100 + gphoto2 (2.4.5-2) unstable; urgency=low * debian/control: diff --git a/debian/control b/debian/control index 9043ec4..f7e69ad 100644 --- a/debian/control +++ b/debian/control @@ -3,6 +3,7 @@ Section: utils Priority: extra Maintainer: Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org> Uploaders: Frederic Peters <fpeters@debian.org>, Cyril Brulebois <kibi@debian.org> + , David Paleino <dapal@debian.org> Build-Depends: debhelper (>= 7), quilt, type-handling (>= 0.2.1), diff --git a/debian/patches/01-handle_EACCES.patch b/debian/patches/01-handle_EACCES.patch new file mode 100644 index 0000000..c5e5492 --- /dev/null +++ b/debian/patches/01-handle_EACCES.patch @@ -0,0 +1,31 @@ +From: David Paleino <dapal@debian.org> +Subject: exit with an error if files couldn't be written to disk +Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512883 +Origin: vendor +Forwarded: yes, https://sourceforge.net/tracker/index.php?func=detail&aid=3109145&group_id=8874&atid=308874 + +--- + gphoto2/main.c | 5 +++++ + 1 file changed, 5 insertions(+) + +--- gphoto2-2.4.5.orig/gphoto2/main.c ++++ gphoto2-2.4.5/gphoto2/main.c +@@ -43,6 +43,7 @@ + #include <fcntl.h> + #include <utime.h> + #include <limits.h> ++#include <errno.h> + + #ifdef HAVE_POPT + # include <popt.h> +@@ -501,6 +502,10 @@ save_file_to_file (Camera *camera, GPCon + strcpy (tmpname, "tmpfileXXXXXX"); + fd = mkstemp(tmpname); + if (fd == -1) { ++ if (errno == EACCES) { ++ gp_context_error (context, _("Permission denied")); ++ return GP_ERROR; ++ } + CR (gp_file_new (&file)); + tmpfilename = NULL; + } else { diff --git a/debian/patches/series b/debian/patches/series index 1d77bb1..e4ef4ce 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ +01-handle_EACCES.patch 20_german_translation
Attachment:
signature.asc
Description: PGP signature