* [Linux-ia64] efibootmgr-0.3.3 release
@ 2001-08-03 22:21 Matt_Domsch
2001-08-06 15:10 ` Richard Hirst
2001-08-06 15:19 ` Matt_Domsch
0 siblings, 2 replies; 3+ messages in thread
From: Matt_Domsch @ 2001-08-03 22:21 UTC (permalink / raw)
To: linux-ia64
> We have noticed (during RH7.1) install that efibootmgr was
> not checking
> for options with an identical names and it was creating menu options
> with the same name for instance if you reinstall the system a
> second time.
>
> Would it be possible to add a warning/error/check that would
> avoid such a thing ?
Good idea Stephane. I've added just such a warning. When creating a new
boot variable, you'll get a warning on stderr if the label conflicts with an
existing label. It'll let you do it though.
New release efibootmgr 0.3.3 is now available at
http://domsch.com/linux/ia64/efibootmgr-0.3.3.tar.gz.
Thanks,
Matt
--
Matt Domsch
Sr. Software Engineer
Dell Linux Solutions
www.dell.com/linux
#2 Linux Server provider with 17% in the US and 14% Worldwide (IDC)!
#3 Unix provider with 18% in the US (Dataquest)!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Linux-ia64] efibootmgr-0.3.3 release
2001-08-03 22:21 [Linux-ia64] efibootmgr-0.3.3 release Matt_Domsch
@ 2001-08-06 15:10 ` Richard Hirst
2001-08-06 15:19 ` Matt_Domsch
1 sibling, 0 replies; 3+ messages in thread
From: Richard Hirst @ 2001-08-06 15:10 UTC (permalink / raw)
To: linux-ia64
On Fri, Aug 03, 2001 at 05:21:36PM -0500, Matt_Domsch@Dell.com wrote:
> New release efibootmgr 0.3.3 is now available at
> http://domsch.com/linux/ia64/efibootmgr-0.3.3.tar.gz.
Goes bang for me... assuming efichar_strlen() is supposed to return
the length in efichars, not bytes, the following fixes it. In any case
a null is needed on the end of buffer[].
Richard
--- efibootmgr-0.3.3/src/lib/efichar.c- Mon Aug 6 16:48:40 2001
+++ efibootmgr-0.3.3/src/lib/efichar.c Mon Aug 6 16:54:29 2001
@@ -36,11 +36,12 @@
char *buffer;
int s2_len = efichar_strlen(s2, -1);
- buffer = malloc(s2_len / sizeof(efi_char16_t));
+ buffer = malloc(s2_len+1);
if (!buffer) return -1;
for (i=0; i<(s2_len); i++) {
buffer[i] = s2[i] & 0xFF;
}
+ buffer[i] = '\0';
rc = strcmp(s1, buffer);
free(buffer);
return rc;
^ permalink raw reply [flat|nested] 3+ messages in thread* RE: [Linux-ia64] efibootmgr-0.3.3 release
2001-08-03 22:21 [Linux-ia64] efibootmgr-0.3.3 release Matt_Domsch
2001-08-06 15:10 ` Richard Hirst
@ 2001-08-06 15:19 ` Matt_Domsch
1 sibling, 0 replies; 3+ messages in thread
From: Matt_Domsch @ 2001-08-06 15:19 UTC (permalink / raw)
To: linux-ia64
> Goes bang for me... assuming efichar_strlen() is supposed to return
> the length in efichars, not bytes, the following fixes it.
> In any case
> a null is needed on the end of buffer[].
Good catch. It hadn't blown up on me, but your patch is correct, and I've
applied it. Thanks!!
--
Matt Domsch
Sr. Software Engineer
Dell Linux Solutions
www.dell.com/linux
#2 Linux Server provider with 17% in the US and 14% Worldwide (IDC)!
#3 Unix provider with 18% in the US (Dataquest)!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-08-06 15:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-03 22:21 [Linux-ia64] efibootmgr-0.3.3 release Matt_Domsch
2001-08-06 15:10 ` Richard Hirst
2001-08-06 15:19 ` Matt_Domsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox