]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
13 years ago Another round of string clarification and adding TRANSLATORS comments.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 16:28:05 +0000 (17:28 +0100)] 
Another round of string clarification and adding TRANSLATORS comments.

13 years ago * util/grub-mknetdir.in: Remove erroneous reference to install_device.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 16:23:26 +0000 (17:23 +0100)] 
* util/grub-mknetdir.in: Remove erroneous reference to install_device.

13 years ago * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 16:20:30 +0000 (17:20 +0100)] 
* grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
to grub_ssize_t.
* grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
* include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.

13 years ago * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 16:16:05 +0000 (17:16 +0100)] 
* grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
trailing newline implicitly. All users updated.

13 years ago Implement serial on IEEE1275 and EFI.
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 16:08:11 +0000 (17:08 +0100)] 
Implement serial on IEEE1275 and EFI.

* docs/grub.texi (Platform-specific limitations): Fix the columen video
on emu. Mention arc and emu as the only platforms without serial
support.
* grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
ieee1275 platforms.
* grub-core/term/efi/serial.c: New file.
* grub-core/term/ieee1275/serial.c: Likewise.
* grub-core/term/serial.c (grub_serial_find): Disable direct port
specification if no ns8250 driver is available.
(grub_cmd_serial): Likewise.
(GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
(GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
* include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
(grub_efi_parity_type_t): New type.
(grub_efi_stop_bits_t): Likewise.
(grub_efi_serial_io_interface): New struct.
* include/grub/serial.h (grub_serial_port): Make 'broken' field
available for all interfaces.
Add EFI and IEEE1275 fields.
(grub_ofserial_init): New proto.
(grub_efiserial_init): Likeiwse.
* util/grub.d/00_header.in: Don't check for the presence of serial
module.

13 years ago * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
Vladimir 'phcoder' Serbinenko [Sun, 26 Feb 2012 15:51:25 +0000 (16:51 +0100)] 
* grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
name as if it was an alias.

13 years ago * grub-core/commands/lsacpi.c (options): Fix typo.
Vladimir 'phcoder' Serbinenko [Sat, 25 Feb 2012 22:04:30 +0000 (23:04 +0100)] 
* grub-core/commands/lsacpi.c (options): Fix typo.

13 years ago Convert grub-emu to argp.
Vladimir 'phcoder' Serbinenko [Sat, 25 Feb 2012 00:15:29 +0000 (01:15 +0100)] 
Convert grub-emu to argp.

* grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
emu.
* util/argp_common.c: Rename to ...
* grub-core/kern/emu/argp_common.c: ... this. All users updated.
Add missing includes.
* grub-core/kern/emu/main.c: Convert to argp.
* po/POTFILES.in: Regenerate.
* util/grub-install.in (usage): Make first letter lowcase in messages
for uniformity.
* util/grub-setup.c (options): Likewise.

13 years ago * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
Vladimir 'phcoder' Serbinenko [Fri, 24 Feb 2012 21:40:05 +0000 (22:40 +0100)] 
* grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
Put back accidently commented-out code.

13 years ago * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
Vladimir 'phcoder' Serbinenko [Fri, 24 Feb 2012 21:28:45 +0000 (22:28 +0100)] 
* grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
loop check using Brent algorithm.
(grub_hfsplus_btree_search): Likewise.

13 years ago * util/grub-install.in: Fix usage of wrong device for PreP install.
Vladimir 'phcoder' Serbinenko [Fri, 24 Feb 2012 11:35:38 +0000 (12:35 +0100)] 
* util/grub-install.in: Fix usage of wrong device for PreP install.

13 years ago * conf/Makefile.common (CFLAGS_GNULIB): Add
Vladimir 'phcoder' Serbinenko [Fri, 24 Feb 2012 11:30:32 +0000 (12:30 +0100)] 
* conf/Makefile.common (CFLAGS_GNULIB): Add
-Wno-unsafe-loop-optimizations.
* configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
on tools.
* grub-core/commands/legacycfg.c: Add pragma to skip
-Wunsafe-loop-optimizations.
(check_password_md5_real): Fix loop counter type.
* grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
reading.
* grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
* grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
loop condition.
* grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
* grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
* grub-core/net/net.c (grub_net_route_address): Add safety loop
condition.
* grub-core/normal/charset.c (bidi_line_wrap): Likewise.
* grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
avoid possible infinite loops.
* grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
and -Wunsafe-loop-optimizations.
* grub-core/script/yylex.l: Likewise.
* util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
(print_glyphs): Avoid infinite loops.
* util/grub-mkimage.c (compress_kernel_xz): Fix format security.

13 years ago * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
Grégoire Sutre [Fri, 24 Feb 2012 10:48:07 +0000 (11:48 +0100)] 
* grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
to avoid infinite loop.
(disp_acpi_rsdt_table): Likewise.

13 years ago * grub-core/font/font.c (grub_font_load): Add support for default
Vladimir 'phcoder' Serbinenko [Fri, 24 Feb 2012 10:18:06 +0000 (11:18 +0100)] 
* grub-core/font/font.c (grub_font_load): Add support for default
path for fonts ($prefix/fonts).
* grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
for checking if string is a path.
* grub-core/normal/main.c (features): Add feature_default_font_path.
* util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
* util/grub.d/00_header.in: Use default directory if possible.
* util/grub-install.in: Install unicode.pf2.

13 years ago * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
Vladimir 'phcoder' Serbinenko [Fri, 24 Feb 2012 09:31:24 +0000 (10:31 +0100)] 
* po/README: Add de_CH and en@quot to po/LINGUAS generation command.
* po/Rules-swiss: New file.
* po/swiss.sed: Likewise.

13 years ago * grub-core/fs/btrfs.c (find_device): Fix typos.
Vladimir 'phcoder' Serbinenko [Thu, 23 Feb 2012 21:27:25 +0000 (22:27 +0100)] 
* grub-core/fs/btrfs.c (find_device): Fix typos.
* grub-core/fs/zfs/zfs.c (read_device): Likewise.
* util/grub-mkrelpath.c (argp_parser): Likewise.
Reported by: Yuri Chornoivan.

13 years ago * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
Dalet Omega [Thu, 23 Feb 2012 16:30:19 +0000 (17:30 +0100)] 
* grub-core/gfxmenu/gui_label.c (label_set_property): Add template
for usual informative messages.

13 years ago Starfield theme.
Dalet Omega [Thu, 23 Feb 2012 16:21:38 +0000 (17:21 +0100)] 
Starfield theme.

* Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
* conf/Makefile.common: Define starfielddir.
* configure.ac: Configure starfield.
* themes/starfield/COPYING.CC-BY-SA-3.0: New file.
* themes/starfield/README: Likewise.
* themes/starfield/blob_w.png: Likewise.
* themes/starfield/boot_menu_c.png: Likewise.
* themes/starfield/boot_menu_e.png: Likewise.
* themes/starfield/boot_menu_n.png: Likewise.
* themes/starfield/boot_menu_ne.png: Likewise.
* themes/starfield/boot_menu_nw.png: Likewise.
* themes/starfield/boot_menu_s.png: Likewise.
* themes/starfield/boot_menu_se.png: Likewise.
* themes/starfield/boot_menu_sw.png: Likewise.
* themes/starfield/boot_menu_w.png: Likewise.
* themes/starfield/slider_c.png: Likewise.
* themes/starfield/slider_n.png: Likewise.
* themes/starfield/slider_s.png: Likewise.
* themes/starfield/src/blob_nw.xcf: Likewise.
* themes/starfield/src/bootmenu/: Likewise.
* themes/starfield/src/bootmenu/center.xcf: Likewise.
* themes/starfield/src/bootmenu/corner.xcf: Likewise.
* themes/starfield/src/bootmenu/side.xcf: Likewise.
* themes/starfield/src/slider_c.xcf: Likewise.
* themes/starfield/src/slider_n.xcf: Likewise.
* themes/starfield/src/slider_s.xcf: Likewise.
* themes/starfield/src/terminalbox/: Likewise.
* themes/starfield/src/terminalbox/center.xcf: Likewise.
* themes/starfield/src/terminalbox/corner.xcf: Likewise.
* themes/starfield/src/terminalbox/side.xcf: Likewise.
* themes/starfield/starfield.png: Likewise.
* themes/starfield/terminal_box_c.png: Likewise.
* themes/starfield/terminal_box_e.png: Likewise.
* themes/starfield/terminal_box_n.png: Likewise.
* themes/starfield/terminal_box_ne.png: Likewise.
* themes/starfield/terminal_box_nw.png: Likewise.
* themes/starfield/terminal_box_s.png: Likewise.
* themes/starfield/terminal_box_se.png: Likewise.
* themes/starfield/terminal_box_sw.png: Likewise.
* themes/starfield/terminal_box_w.png: Likewise.
* themes/starfield/theme.txt: Likewise.

13 years agoUpdate .bzrignore
Richard Laager [Thu, 23 Feb 2012 06:25:45 +0000 (07:25 +0100)] 
Update .bzrignore

13 years ago * util/grub.d/00_header.in: Add missing export theme.
Vladimir 'phcoder' Serbinenko [Thu, 23 Feb 2012 05:26:00 +0000 (06:26 +0100)] 
* util/grub.d/00_header.in: Add missing export theme.

13 years ago * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 15:50:14 +0000 (16:50 +0100)] 
* util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
already included.
Reported by: Eren D.

13 years ago * conf/Makefile.common (grubdatadir): Removed.
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 15:27:39 +0000 (16:27 +0100)] 
* conf/Makefile.common (grubdatadir): Removed.
(Makefile.am): Move eveything grubdata to pkgdata.

13 years ago * grub-core/commands/acpihalt.c (get_sleep_type):
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 15:25:35 +0000 (16:25 +0100)] 
* grub-core/commands/acpihalt.c (get_sleep_type):
Remove unused variable.

13 years ago * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 15:02:03 +0000 (16:02 +0100)] 
* include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
* grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
i18n with gettext no-op.
(skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
GRUB_ACPI_OPCODE_STRING_CONST.
(get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.

13 years ago * po/POTFILES.in: Regenerate.
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 04:50:36 +0000 (05:50 +0100)] 
* po/POTFILES.in: Regenerate.

13 years ago * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 04:37:32 +0000 (05:37 +0100)] 
* Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
-Wno-error=missing-noreturn.

13 years ago * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 04:22:39 +0000 (05:22 +0100)] 
* grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
condition to avoid possibly infinite loops.
* grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
* grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.

13 years ago * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 04:19:11 +0000 (05:19 +0100)] 
* grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
condition to avoid possibly infinite loops.

13 years ago * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 04:16:26 +0000 (05:16 +0100)] 
* grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
on show_error.

13 years ago * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 04:12:18 +0000 (05:12 +0100)] 
* grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.

13 years ago * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 04:09:08 +0000 (05:09 +0100)] 
* grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.

13 years ago * util/bin2h.c (usage): Add missing attribute noreturn.
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 04:06:58 +0000 (05:06 +0100)] 
* util/bin2h.c (usage): Add missing attribute noreturn.

13 years ago * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 04:04:54 +0000 (05:04 +0100)] 
* grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
if the size isn't divisible by 512.

13 years ago Make list_push and list_remove functions rather than inline functions
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 04:01:20 +0000 (05:01 +0100)] 
Make list_push and list_remove functions rather than inline functions
to decrease size and avoid aliasing violations.

* include/grub/list.h (grub_list_push): Move to ...
* grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
* include/grub/list.h (grub_list_remove): Move to ...
* grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.

13 years ago * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
Vladimir 'phcoder' Serbinenko [Wed, 22 Feb 2012 03:56:45 +0000 (04:56 +0100)] 
* configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
and -Wunused-result.

13 years ago * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
Vladimir 'phcoder' Serbinenko [Tue, 21 Feb 2012 15:16:45 +0000 (16:16 +0100)] 
* grub-core/net/net.c (grub_cmd_deladdr): Fix index.
Reported by: Seth Goldberg

13 years ago * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
Vladimir 'phcoder' Serbinenko [Tue, 21 Feb 2012 14:26:16 +0000 (15:26 +0100)] 
* configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.

13 years ago2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
Samuel Thibault [Sun, 19 Feb 2012 16:06:00 +0000 (17:06 +0100)] 
2012-02-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
* util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
command line.
* docs/grub.texi (Simple configuration): Document
GRUB_CMDLINE_GNUMACH.

13 years agomerge mainline into gdb
Vladimir 'phcoder' Serbinenko [Sat, 18 Feb 2012 20:00:13 +0000 (21:00 +0100)] 
merge mainline into gdb

13 years agomerge backtrace into gdb
Vladimir 'phcoder' Serbinenko [Sat, 18 Feb 2012 19:59:42 +0000 (20:59 +0100)] 
merge backtrace into gdb

13 years ago * conf/Makefile.common (platform_SCRIPTS): New variable.
Vladimir 'phcoder' Serbinenko [Sat, 18 Feb 2012 19:25:11 +0000 (20:25 +0100)] 
* conf/Makefile.common (platform_SCRIPTS): New variable.
(platform_PROGRAMS): Likewise.
* gentpl.py: Mark *,module and *.image for install.
* grub-core/gdb_grub.in: Add a notice of expected environment.
* grub-core/Makefile.core.def (gdb_grub): Mark for install.
(gmodule.pl): Likewise.

13 years ago Replace grub_checkkey with grub_getkey_noblock.
Vladimir 'phcoder' Serbinenko [Sat, 18 Feb 2012 18:59:01 +0000 (19:59 +0100)] 
Replace grub_checkkey with grub_getkey_noblock.

* grub-core/kern/term.c (grub_checkkey): Replaced with ...
(grub_getkey_noblock): ... this. All users updated.

13 years ago * grub-core/kern/emu/console.c: Move to ...
Vladimir 'phcoder' Serbinenko [Sat, 18 Feb 2012 18:51:43 +0000 (19:51 +0100)] 
* grub-core/kern/emu/console.c: Move to ...
* grub-core/term/emu/console.c: ...here.
(grub_ncurses_getkey): Fix return value if no key is detected.

13 years ago * include/grub/test.h (grub_unit_test_init): Add missing prototype.
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 21:04:55 +0000 (22:04 +0100)] 
* include/grub/test.h (grub_unit_test_init): Add missing prototype.
(grub_unit_test_fini): Likewise.
* tests/lib/unit_test.c (main): Remove extra nested external prototype.

13 years ago * grub-core/script/execute.c (grub_script_break): Clarify logic.
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 20:33:48 +0000 (21:33 +0100)] 
* grub-core/script/execute.c (grub_script_break): Clarify logic.
Better error handling.
(grub_script_return): Likewise.
* grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.

13 years ago * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 18:34:08 +0000 (19:34 +0100)] 
* grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
rimplicit redifinition.

13 years ago * docs/grub.texi (Internationalisation): Detail (lack of) collation in
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 18:29:18 +0000 (19:29 +0100)] 
* docs/grub.texi (Internationalisation): Detail (lack of) collation in
GRUB.

13 years ago * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 18:24:23 +0000 (19:24 +0100)] 
* grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
* grub-core/normal/main.c (grub_normal_read_line_real): Gettext
prompt here.

13 years ago * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 18:19:57 +0000 (19:19 +0100)] 
* grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
as GRUB_ERR_BUG. Don't malloc if no device is available.

13 years ago * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 18:16:49 +0000 (19:16 +0100)] 
* grub-core/term/terminfo.c (grub_terminfo_output_unregister):
Mark calling with invalid term as GRUB_ERR_BUG.

13 years ago * grub-core/net/tftp.c (tftp_receive): Silently discard too short
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 18:11:06 +0000 (19:11 +0100)] 
* grub-core/net/tftp.c (tftp_receive): Silently discard too short
packets rather than raising an error.

13 years ago * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 18:08:55 +0000 (19:08 +0100)] 
* grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
in if.

13 years ago * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 18:03:14 +0000 (19:03 +0100)] 
* grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
diagnostic to dprintf.
* grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.

13 years ago * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 18:00:50 +0000 (19:00 +0100)] 
* grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
device name.

13 years ago * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 17:47:46 +0000 (18:47 +0100)] 
* grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
(grub_ntfs_iterate_dir): Likewise.

13 years ago Efiemu stylistic fixes and gettext.
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 17:43:39 +0000 (18:43 +0100)] 
Efiemu stylistic fixes and gettext.

* grub-core/efiemu/i386/loadcore32.c
(grub_arch_efiemu_relocate_symbols32): Avoid set in if.
* grub-core/efiemu/i386/loadcore64.c
(grub_arch_efiemu_relocate_symbols64): Likewise.
* grub-core/efiemu/i386/pc/cfgtables.c
(grub_machine_efiemu_init_tables): Likewise.
* grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
(grub_efiemu_loadcore_initXX): Add a filename argument.
All users updated.
Improved error message.
* grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
Add a filename argument.
All users updated.
* grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
Reclassify double relocation as GRUB_ERR_BUG.

13 years ago * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 16:38:13 +0000 (17:38 +0100)] 
* grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
handling.

13 years ago * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 16:36:33 +0000 (17:36 +0100)] 
* grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
on partition.

13 years ago * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 16:21:09 +0000 (17:21 +0100)] 
* include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.

13 years ago Improve string. Gettextize.
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 14:25:25 +0000 (15:25 +0100)] 
Improve string. Gettextize.

13 years agoRemove prio_list
Vladimir 'phcoder' Serbinenko [Sun, 12 Feb 2012 02:52:17 +0000 (03:52 +0100)] 
Remove prio_list

13 years ago * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
Vladimir 'phcoder' Serbinenko [Sat, 11 Feb 2012 11:21:21 +0000 (12:21 +0100)] 
* configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
utils.
* util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.

13 years ago * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
Vladimir 'phcoder' Serbinenko [Sat, 11 Feb 2012 10:57:47 +0000 (11:57 +0100)] 
* grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
[GRUB_UTIL]: New function.
(insert_array) [GRUB_UTIL]: Store partmaps.
* include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
partmaps.
(grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
* util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
(probe_abstraction): Print diskfilter and not raid.
Reported by: Lennart Sorensen

13 years ago * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
Vladimir 'phcoder' Serbinenko [Sat, 11 Feb 2012 10:50:10 +0000 (11:50 +0100)] 
* util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
* util/grub-mkimagexx.c (MASK3): New define.
(add_value_to_slot_20b): Use MASK3.
(add_value_to_slot_21): Likewise.
(relocate_addresses): Fix format specification.
(load_image): Explicitly init symtab_section.

13 years ago * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
Vladimir 'phcoder' Serbinenko [Sat, 11 Feb 2012 10:41:22 +0000 (11:41 +0100)] 
* util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
(grub_util_biosdisk_get_grub_dev): Fix format specification.

13 years ago * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
Vladimir 'phcoder' Serbinenko [Sat, 11 Feb 2012 10:35:54 +0000 (11:35 +0100)] 
* grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
on powerpc.
Reported by: Lennart Sorensen

13 years ago * gentpl.py: Add missing license header.
Vladimir 'phcoder' Serbinenko [Sat, 11 Feb 2012 10:31:13 +0000 (11:31 +0100)] 
* gentpl.py: Add missing license header.
* docs/grub.texi: Update copyright year.

13 years agoSource grub-mkconfig_lib from the build directory at build time.
Grégoire Sutre [Fri, 10 Feb 2012 17:16:27 +0000 (18:16 +0100)] 
Source grub-mkconfig_lib from the build directory at build time.

13 years ago Increase warning level.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 15:48:48 +0000 (16:48 +0100)] 
Increase warning level.

* conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
-Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
* configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
(TARGET_CFLAGS): Likewise.
(HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
* grub-core/Makefile.core.def (decompressor_xz): Add
-Wno-unreachable-code.
(normal): Add -Wno-redundant-decls.
(xzio): Add -Wno-unreachable-code.
(lzopio): Add -Wno-redundant-decls -Wno-error.
* grub-core/commands/acpi.c: Add exception to -Wcast-align.
* grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
* grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
* grub-core/kern/dl.c: Add exception to -Wcast-align.
* grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
* grub-core/kern/i386/coreboot/init.c: Add exception to
-Wsuggest-attribute=noreturn.
* grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
* grub-core/kern/ia64/dl_helper.c: Likewise.
* grub-core/kern/mips/dl.c: Likewise.
* grub-core/kern/sparc64/dl.c: Likewise.
* grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
* grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
(memcmp): Likewise.
* grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
* grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
* grub-core/loader/mips/linux.c: Likewise.
* grub-core/loader/multiboot_elfxx.c: Likewise.
* grub-core/script/parser.y: Add exception to -Wunreachable-code.
* grub-core/video/sm712.c: Add exception to -Wcast-align.
* util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
* grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
fixme.
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
* grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
Fix prototype.

13 years ago * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 13:47:06 +0000 (14:47 +0100)] 
* grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
address.

13 years ago * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 13:30:19 +0000 (14:30 +0100)] 
* grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
Avoid improper use of strings.
(grub_cmd_legacy_initrdnounzip): Likewise.

13 years ago * include/grub/emu/misc.h (grub_util_warn): Add missing format
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 13:15:14 +0000 (14:15 +0100)] 
* include/grub/emu/misc.h (grub_util_warn): Add missing format
attribute.
(grub_util_info): Likewise.
(grub_util_error): Likewise.

13 years ago * util/grub-mount.c (fuse_init): Avoid improper use of strings.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 13:12:43 +0000 (14:12 +0100)] 
* util/grub-mount.c (fuse_init): Avoid improper use of strings.
* util/grub-fstest.c (fstest): Likewise.

13 years ago * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 13:01:53 +0000 (14:01 +0100)] 
* grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
(grub_md_sha512_real): Likewise.
(grub_util_get_geli_uuid): Likewise.
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
(grub_util_biosdisk_open): Fix format specification.
Respect format security.
* grub-core/kern/emu/misc.c (xmalloc): Respect format security.
(xrealloc): Likewise.
(xasprintf): Likewise.

13 years ago * util/import_gcry.py: Include grub/crypto.h in init.c.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 12:58:53 +0000 (13:58 +0100)] 
* util/import_gcry.py: Include grub/crypto.h in init.c.

13 years ago * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 12:56:18 +0000 (13:56 +0100)] 
* util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
(generate_image): Make prefix a const char *.
Fix format specifications. Respect format security.
Avoid void * arithmetics.
Avoid shadowing.
(argp_parser): Remove unused variable. Respect format security.
* util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
(count_funcs) [!MKIMAGE_ELF64]: #if-out.
(count_funcs): Remove unused variable.
(relocate_addresses): Fix format specification.
Disable x86-64 with elf32. Remove unused variables.
(add_fixup_entry): Avoid shadowing.
(make_reloc_section): Fix format specification.
Use assert.
(locate_sections): Fix format specifications.
(load_image): Avoid shadowing.

13 years ago * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 12:49:24 +0000 (13:49 +0100)] 
* util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
Fix format specifications. Respect format security.
Don't translate already translated grub_errmsg.
(argp_parser): Remove unused variable

13 years ago * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 12:47:04 +0000 (13:47 +0100)] 
* util/grub-mkrelpath.c (argp_parser): Remove unused variable.

13 years ago * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 12:44:57 +0000 (13:44 +0100)] 
* util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
(main): Likewise. Use xmalloc. Respect format security.

13 years ago * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 12:42:00 +0000 (13:42 +0100)] 
* util/grub-mklayout.c (console_grub_equivalence): Make "layout"
a const char *.
(argp_parser): Remove unused variable.

13 years ago * util/grub-mkfont.c (grub_font_info): Make name a const char *.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 12:31:43 +0000 (13:31 +0100)] 
* util/grub-mkfont.c (grub_font_info): Make name a const char *.
(add_pixel): Make static.
(add_font): Likewise.
(write_string_section): Make name and str a const char *.
(write_be16_section): Make name a const char *.
(print_glyphs): Make static.
(write_font_ascii_bitmap): Likewise.
(write_font_width_spec): Likewise.
(write_font_pf2): Likewise.
(argp_parser): Remove unused variable.
Respect format security.
(main): Avoid shadowing. Respect format security.

13 years ago * util/grub-editenv.c (argp_parser): Make static.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 12:26:19 +0000 (13:26 +0100)] 
* util/grub-editenv.c (argp_parser): Make static.
(create_envblk_file): Use xmalloc.
(open_envblk_file): Likewise.
Resepect format security.
(set_variables): Respect format security.

13 years ago * util/getroot.c (grub_find_device): Respect format security.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 12:17:12 +0000 (13:17 +0100)] 
* util/getroot.c (grub_find_device): Respect format security.
(get_mdadm_uuid): Remove unused variable.
(grub_util_pull_device): Dont call gettext on already translated
grub_errmsg.
(find_system_device): Remove unused variable.
(grub_util_get_grub_dev): Likewise.
(grub_make_system_path_relative_to_its_root): Respect format security.

13 years ago * util/grub-fstest.c (execute_command): Make first argument
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 12:08:59 +0000 (13:08 +0100)] 
* util/grub-fstest.c (execute_command): Make first argument
a const char *.
(read_file): Avoid shadowing.
Reuse underlying error message if device open fails.
(cmd_cmp): Respect format security.
(root): Make const char *.
(fstest): Remove args argument and use global copy.
Respect format security.
(argp_parser): Make static.
(main): Make default_root const char *.

13 years ago * util/grub-mount.c (root): Make const char *.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 12:03:21 +0000 (13:03 +0100)] 
* util/grub-mount.c (root): Make const char *.
(execute_command): Make first argument a const char *.
(fuse_init): Respect format security.
(argp_parser): Make static. Remove unused variable.
(main):  Make default_root a const char *.
Respect format security.

13 years ago * util/grub-probe.c (probe): Don't call gettext on already translated
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:57:00 +0000 (12:57 +0100)] 
* util/grub-probe.c (probe): Don't call gettext on already translated
grub_errmsg.
Remove unused variables.
(argp_parser): Remove unused variable.

13 years ago * util/grub-script-check.c (argp_parser): Remove unused variable.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:54:40 +0000 (12:54 +0100)] 
* util/grub-script-check.c (argp_parser): Remove unused variable.
(main): Rename read to curread to avoid shadowing.

13 years ago * util/misc.c (grub_util_write_image_at): Fix format specification.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:52:46 +0000 (12:52 +0100)] 
* util/misc.c (grub_util_write_image_at): Fix format specification.
(grub_util_write_image): Likewise.
(grub_script_execute_argument_to_string): Removed (unused).
(grub_script_execute_menuentry): Likewise.
(grub_putchar): Likewise.

13 years ago * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:47:42 +0000 (12:47 +0100)] 
* include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
(FUNCTION) [GRUB_UTIL]: Likewise.
(VARIABLE) [GRUB_UTIL]: Likewise.

13 years ago * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:45:32 +0000 (12:45 +0100)] 
* include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
NEED_REGISTER_FRAME_INFO in GRUB_UTIL.

13 years ago * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:43:11 +0000 (12:43 +0100)] 
* grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
buffer.

13 years ago * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:40:22 +0000 (12:40 +0100)] 
* grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
(grub_util_ldm_embed): Likewise.

13 years ago * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:36:02 +0000 (12:36 +0100)] 
* grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
(grub_util_ldm_embed): Likewise.

13 years ago * util/grub-editenv.c (print_var): Rename name to varname to
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:28:34 +0000 (12:28 +0100)] 
* util/grub-editenv.c (print_var): Rename name to varname to
avoid shadowing.
(main): Rename index to curindex to avoid shadowing.
MAke filename a const char *.

13 years ago * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:25:27 +0000 (12:25 +0100)] 
* grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
to arg_getline to avoid shadowing.

13 years ago * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:24:03 +0000 (12:24 +0100)] 
* grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
disk_ to avoid shadowing.

13 years ago * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:21:28 +0000 (12:21 +0100)] 
* grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
curindex to avoid shadowing.
Make static.
(MatchFinder_GetNumAvailableBytes): Make static.

13 years ago * grub-core/fs/squash4.c (direct_read): Rename read to curread to
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:17:40 +0000 (12:17 +0100)] 
* grub-core/fs/squash4.c (direct_read): Rename read to curread to
avoid shadowing.

13 years ago * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
Vladimir 'phcoder' Serbinenko [Fri, 10 Feb 2012 11:11:50 +0000 (12:11 +0100)] 
* grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
argument from encrypt to do_encrypt to avoid shadowing.

13 years ago * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
Vladimir 'phcoder' Serbinenko [Thu, 9 Feb 2012 22:53:27 +0000 (23:53 +0100)] 
* grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
incorrect nesting of #if's.