Home
last modified time | relevance | path

Searched refs:temp_grub (Results 1 – 1 of 1) sorted by relevance

/titanic_41/usr/src/lib/libbe/common/
H A Dbe_utils.c1304 char *temp_grub; in be_change_grub_default() local
1391 if ((temp_grub = (char *)malloc(temp_grub_len)) == NULL) { in be_change_grub_default()
1397 (void) memset(temp_grub, 0, temp_grub_len); in be_change_grub_default()
1398 (void) strlcpy(temp_grub, grub_file, temp_grub_len); in be_change_grub_default()
1399 (void) strlcat(temp_grub, "XXXXXX", temp_grub_len); in be_change_grub_default()
1400 if ((fd = mkstemp(temp_grub)) == -1) { in be_change_grub_default()
1405 free(temp_grub); in be_change_grub_default()
1406 temp_grub = NULL; in be_change_grub_default()
1413 temp_grub, strerror(err)); in be_change_grub_default()
1469 if (rename(temp_grub, grub_file) != 0) { in be_change_grub_default()
[all …]