Package: mmv
Version: 1.01b-12
Severity: important
Tags: patch
Dear mmv maintainers,
Bug #179337 had been closed because it was deemed irreproducible.
Sadly, the segfault is 100% reproducible on my systems when a target
directory is missing.
Debugging shows that the reason is that the automatic variable FILEINFO
*fdel is not initialized in checkto() and the missing target directory
prevents that it it ever assigned a value before it is checked against
NULL in line 1378. The attached patch fixes this.
Regards,
Bernd
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.1
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Versions of packages mmv depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
mmv recommends no packages.
-- no debconf information
-- PATCH:
*** mmv.c 2005/04/15 15:10:48 1.2
--- mmv.c 2005/04/15 15:28:58 1.3
***************
*** 1280,1286 ****
{
char tpath[MAXPATH + 1];
char *pathend;
! FILEINFO *fdel;
int hlen, tlen;
if (op & DIRMOVE) {
--- 1280,1286 ----
{
char tpath[MAXPATH + 1];
char *pathend;
! FILEINFO *fdel=NULL;
int hlen, tlen;
if (op & DIRMOVE) {
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]