Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int
- virRotatingFileWriterDelete(virRotatingFileWriterPtr file)
- {
- size_t i;
- char *bname = NULL;
- if (unlink(file->basepath) < 0 &&
- errno != ENOENT) {
- bname = basename(file->basepath);
- if (!strcmp(bname, "console.log"))
- return 0;
- virReportSystemError(errno,
- _("Unable to delete file %s"),
- file->basepath);
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment