[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#174060: dpkg: md5sum -c segfault if expects a file and gets a directory



On Mon, Dec 23, 2002 at 03:46:16PM +0100, Wichert Akkerman wrote:
> Previously Pedro Zorzenon Neto wrote:
> >    md5sum segfaults if it expects a file, but it is really a directory.
> 
> Already fixed in the current version:
> 
> [tornado;..f/utils/python/src]-26> md5sum -c /tmp
> md5sum: no files checked
> 
> Wichert.
> 
> -- 
> Wichert Akkerman <wichert@wiggy.net>           http://www.wiggy.net/
> A random hacker

Hi Wichert,

  My working machine is woody (dpkg 1.9.21), but I also tested in
another machine (sid, dpkg 1.10.9) and it also gives the same segfault.

  md5sum returns the following error:
   error processing a/b: failed in buffer_read(fd): mdfile: Is a directory
   Segmentation fault

  Please, follow these steps and check if it segfaults...

      cd /tmp/
      mkdir a
      echo "test" > a/b
      mkdir c
      mkdir c/a
      mkdir c/a/b
      md5sum a/b > /tmp/md5
      cd c
      md5sum -c /tmp/md5

  Thanks in advance,
    Pedro



Reply to: