]> git.saurik.com Git - apt-legacy.git/blobdiff - apt-pkg/contrib/cdromutl.cc
Upgraded to APT 0.7.
[apt-legacy.git] / apt-pkg / contrib / cdromutl.cc
index ab170ec5a8b0c17f2c3bfae51ea9542201fd9d4e..b6524a1785f48e0f258aaf2630460d617377dc55 100644 (file)
@@ -10,9 +10,6 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/cdromutl.h"
-#endif
 #include <apt-pkg/cdromutl.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/md5.h>
@@ -179,7 +176,8 @@ bool IdentCdrom(string CD,string &Res,unsigned int Version)
       Hash.Add(Dir->d_name);
    };
    
-   chdir(StartDir.c_str());
+   if (chdir(StartDir.c_str()) != 0)
+      return _error->Errno("chdir",_("Unable to change to %s"),StartDir.c_str());
    closedir(D);
    
    // Some stats from the fsys