diff options
Diffstat (limited to 'cmdline/apt-cdrom.cc')
-rw-r--r-- | cmdline/apt-cdrom.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc index 49c7909dc..dd45e9b48 100644 --- a/cmdline/apt-cdrom.cc +++ b/cmdline/apt-cdrom.cc @@ -1,6 +1,6 @@ // -*- 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. @@ -468,7 +468,8 @@ bool CopyPackages(string CDROM,string Name,vector<string> &List) // 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; |