Lines Matching refs:backup
1615 const char *backup = in semanage_commit_sandbox() local
1649 if (stat(backup, &buf) == 0) { in semanage_commit_sandbox()
1651 semanage_remove_directory(backup) != 0) { in semanage_commit_sandbox()
1652 ERR(sh, "Could not remove previous backup %s.", backup); in semanage_commit_sandbox()
1657 ERR(sh, "Could not stat directory %s.", backup); in semanage_commit_sandbox()
1662 if (rename(active, backup) == -1) { in semanage_commit_sandbox()
1663 ERR(sh, "Error while renaming %s to %s.", active, backup); in semanage_commit_sandbox()
1676 if (rename(backup, active) < 0) in semanage_commit_sandbox()
1677 ERR(sh, "Error while renaming %s back to %s.", backup, in semanage_commit_sandbox()
1690 else if (rename(backup, active) < 0) in semanage_commit_sandbox()
1691 ERR(sh, "Error while renaming %s back to %s.", backup, in semanage_commit_sandbox()
1702 retval = semanage_remove_directory(backup); in semanage_commit_sandbox()
1704 ERR(sh, "Could not delete previous directory %s.", backup); in semanage_commit_sandbox()