]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire.cc
fix various -Wall warnings
[apt.git] / apt-pkg / acquire.cc
index 6840ae120c4c9edd0a66043a0791aad1a05f6b16..91f60388959bce44a50ee81668b25d66e1e13e4a 100644 (file)
@@ -444,8 +444,9 @@ bool pkgAcquire::Clean(string Dir)
         unlink(Dir->d_name);
    };
    
-   chdir(StartDir.c_str());
    closedir(D);
+   if (chdir(StartDir.c_str()) != 0)
+      return _error->Errno("chdir",_("Unable to change to %s"),StartDir.c_str());
    return true;   
 }
                                                                        /*}}}*/