Package: dump
Version: 0.4b43-1
Severity: normal
Tags: upstream patch

When restoring from mutiple tapes, restore asks for changing the tape
and which device to use (and supplies a default value). After trying to
continue, restore exits with 1.

Stelian Pop verified this one as a bug and supplied the following patch.

Index: restore/tape.c
===================================================================
RCS file: /cvsroot/dump/dump/restore/tape.c,v
retrieving revision 1.101
diff -u -p -r1.101 tape.c
--- restore/tape.c      5 May 2011 16:05:40 -0000       1.101
+++ restore/tape.c      8 Jun 2011 15:38:59 -0000
@@ -586,7 +586,7 @@ again:
                fprintf(stderr, "otherwise enter tape name (default: %s) ", 
magtape);
#endif
                (void) fflush(stderr);
-               if (fgets(buf, TP_BSIZE, terminal))
+               if (!fgets(buf, TP_BSIZE, terminal))
                        exit(1);
                if (feof(terminal))
                        exit(1);

I can't test the patch, since I don't know how to deal with this error:

dpkg-source: info: use the '3.0 (quilt)' format to have separate and documented 
changes to upstream files, see dpkg-source(1)
dpkg-source: unrepresentable changes to source
dpkg-buildpackage: error: dpkg-source -b dump-0.4b43 gave error exit status 1


-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32poc.2 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.iso885915 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages dump depends on:
ii  e2fslibs                  1.41.12-2      ext2/ext3/ext4 file system librari
ii  libblkid1                 2.17.2-9       block device id library
ii  libc6                     2.11.2-10      Embedded GNU C Library: Shared lib
ii  libcomerr2                1.41.12-2      common error description library
ii  libncurses5               5.7+20100313-5 shared libraries for terminal hand
ii  libreadline6              6.1-3          GNU readline and history libraries
ii  libselinux1               2.0.96-1       SELinux runtime shared libraries
ii  libuuid1                  2.17.2-9       Universally Unique ID library
ii  tar                       1.23-3         GNU version of the tar archiving u

dump recommends no packages.

dump suggests no packages.

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to