Guest User

Untitled

a guest
Dec 13th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. static int
  2. virRotatingFileWriterDelete(virRotatingFileWriterPtr file)
  3. {
  4. size_t i;
  5. char *bname = NULL;
  6.  
  7. if (unlink(file->basepath) < 0 &&
  8. errno != ENOENT) {
  9. bname = basename(file->basepath);
  10.  
  11. if (!strcmp(bname, "console.log"))
  12. return 0;
  13.  
  14. virReportSystemError(errno,
  15. _("Unable to delete file %s"),
  16. file->basepath);
  17. return -1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment