Lines Matching refs:temp_grub
1522 char *temp_grub;
1609 if ((temp_grub = (char *)malloc(temp_grub_len)) == NULL) {
1615 (void) memset(temp_grub, 0, temp_grub_len);
1616 (void) strlcpy(temp_grub, grub_file, temp_grub_len);
1617 (void) strlcat(temp_grub, "XXXXXX", temp_grub_len);
1618 if ((fd = mkstemp(temp_grub)) == -1) {
1623 free(temp_grub);
1624 temp_grub = NULL;
1631 temp_grub, strerror(err));
1687 if (rename(temp_grub, grub_file) != 0) {
1691 temp_grub, grub_file, strerror(err));
1695 free(temp_grub);
1696 temp_grub = NULL;
1727 if (temp_grub != NULL) {
1728 (void) unlink(temp_grub);
1729 free(temp_grub);