Package: ufsutils
Version: 0.0+2004.06.26-4
Severity: important
Tags: experimental patch

I need to repair filesystem, it works fine, but at the end it segfaults:

./fsck.ufs /dev/loop3
** /dev/loop3
** Last Mounted on /
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
35247 files, 477339 used, 29004 free (1876 frags, 3391 blocks, 0.4% 
fragmentation)
Segmentation fault (core dumped)

The problem is that mntp is uninitialized when HAVE_BSD_STATFS is not defined.
A simple patch is below.

Regards

        Petr



--- fsck.ufs/main.c~    2005-10-24 10:31:35.000000000 +0200
+++ fsck.ufs/main.c     2005-10-24 10:31:35.000000000 +0200
@@ -236,6 +236,8 @@
        if (mntp != NULL)
                filesys = mntp->f_mntfromname;
        else
+#else
+       mntp = NULL;
 #endif
                filesys = blockcheck(filesys);
        /*


-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.11-mina
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages ufsutils depends on:
ii  libc6                 2.3.2.ds1-22       GNU C Library: Shared libraries an
ii  libedit2              2.9.cvs.20040827-1 BSD editline and history libraries
ii  libncurses5           5.4-4              Shared libraries for terminal hand
ii  libufs2               0.0+2004.06.26-4   UFS filesystem shared library

-- no debconf information




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

Reply via email to