Searched refs:temp_grub (Results 1 – 1 of 1) sorted by relevance
1595 char *temp_grub = NULL; in be_change_grub_default() local1687 if ((temp_grub = (char *)malloc(temp_grub_len)) == NULL) { in be_change_grub_default()1693 (void) memset(temp_grub, 0, temp_grub_len); in be_change_grub_default()1694 (void) strlcpy(temp_grub, grub_file, temp_grub_len); in be_change_grub_default()1695 (void) strlcat(temp_grub, "XXXXXX", temp_grub_len); in be_change_grub_default()1696 if ((fd = mkstemp(temp_grub)) == -1) { in be_change_grub_default()1701 free(temp_grub); in be_change_grub_default()1702 temp_grub = NULL; in be_change_grub_default()1709 temp_grub, strerror(err)); in be_change_grub_default()1765 if (rename(temp_grub, grub_file) != 0) { in be_change_grub_default()[all …]