$parent_dir is empty (functions.inc.php ln#347)
daveloper - November 13, 2007 - 05:35
| Project: | backup |
| Version: | 5.x-4.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Description
I think you've to save capture parent dir, suggest change this
//#298
$from_parent = variable_get("backup_from_parent", "");
if (!empty($from_parent)) {
$tmp = chdir("..");
if (empty($tmp)) {
$error = t("Unable to chdir() to parent directory");
return($error);
}
}to this:
$from_parent = variable_get("backup_from_parent", "");
$parent_dir = "";
if (!empty($from_parent)) {
$parent_dir = getcwd();
$tmp = chdir("..");
if (empty($tmp)) {
$error = t("Unable to chdir() to parent directory");
return($error);
}
}