Updated delete operation

This commit is contained in:
Uwe Seimet 2021-12-20 18:33:59 +01:00
parent 5afce5f50f
commit d55bf3e06f
1 changed files with 0 additions and 8 deletions

View File

@ -186,14 +186,6 @@ bool RascsiImage::DeleteImage(int fd, const PbCommand& command)
return ReturnStatus(fd, false, "Missing image filename");
}
if (!IsValidDstFilename(filename)) {
return ReturnStatus(fd, false, "Can't delete image file '" + filename + "': File already exists");
}
if (filename.find('/') != string::npos) {
return ReturnStatus(fd, false, "The image filename '" + filename + "' must not contain a path");
}
filename = default_image_folder + "/" + filename;
int id;