// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-cdrom.cc,v 1.24 1999/05/29 04:59:52 jgg Exp $
+// $Id: apt-cdrom.cc,v 1.25 1999/05/29 21:49:58 jgg Exp $
/* ######################################################################
APT CDROM - Tool for handling APT's CDROM database.
// Get the size
struct stat Buf;
- if (stat(string(CDROM + Prefix + File).c_str(),&Buf) != 0)
+ if (stat(string(CDROM + Prefix + File).c_str(),&Buf) != 0 ||
+ Buf.st_size == 0)
{
// Attempt to fix busted symlink support for one instance
string OrigFile = File;