1. 13 Jan, 2016 1 commit
  2. 28 Jan, 2015 1 commit
  3. 07 Jun, 2013 1 commit
  4. 29 Apr, 2013 1 commit
  5. 03 Mar, 2013 1 commit
  6. 02 Mar, 2013 1 commit
  7. 15 Jan, 2013 1 commit
    • Colin Watson's avatar
      Remove nested functions from script reading and parsing. · 09fd6d82
      Colin Watson authored
      * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
      getline_data argument, passed to getline.
      * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
      getline_data argument, passed to grub_parser_split_cmdline.
      * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
      lexerstate->getline_data to lexerstate->getline.
      (grub_script_lexer_init): Add getline_data argument, saved in
      lexerstate->getline_data.
      * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
      argument, passed to grub_script_parse.
      * grub-core/script/script.c (grub_script_parse): Add getline_data
      argument, passed to grub_script_lexer_init.
      * include/grub/parser.h (grub_parser_split_cmdline): Update
      prototype.  Update all callers to pass appropriate getline data.
      (struct grub_parser.parse_line): Likewise.
      (grub_rescue_parse_line): Likewise.
      * include/grub/reader.h (grub_reader_getline_t): Add void *
      argument.
      * include/grub/script_sh.h (struct grub_lexer_param): Add
      getline_data member.
      (grub_script_parse): Update prototype.  Update all callers to pass
      appropriate getline data.
      (grub_script_lexer_init): Likewise.
      (grub_normal_parse_line): Likewise.
      
      * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
      data argument.
      * grub-core/kern/parser.c (grub_parser_execute: getline): Make
      static instead of nested.  Rename to ...
      (grub_parser_execute_getline): ... this.
      * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
      data argument.
      * grub-core/normal/main.c (read_config_file: getline): Make static
      instead of nested.  Rename to ...
      (read_config_file_getline): ... this.
      (grub_normal_read_line): Add unused data argument.
      * grub-core/script/execute.c (grub_script_execute_sourcecode:
      getline): Make static instead of nested.  Rename to ...
      (grub_script_execute_sourcecode_getline): ... this.
      * util/grub-script-check.c (main: get_config_line): Make static
      instead of nested.
      09fd6d82
  8. 22 Jun, 2012 1 commit
  9. 19 Jun, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Fix wildcard regexp dot and other special characters handling. · 48556879
      Vladimir 'phcoder' Serbinenko authored
      	Reported by: Robert Mabee.
      
      	* grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
      	(make_regex): Escape "|+{}[]". Transform '?' to '.?'.
      	(split_path): Trigger expansion on '?'.
      	(unescape): New function.
      	(wildcard_expand): Unescape parts copied without globbing.
      	* grub-core/script/execute.c (wildcard_escape): Escape '?'.
      	(grub_script_arglist_to_argv): Don't unescape expansions.
      48556879
  10. 09 Jun, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Fix wildcard escaping. · 5e619f40
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
      	* grub-core/script/execute.c (wildcard_escape): .. to here.
      	Don't escape dot.
      	* grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
      	* grub-core/script/execute.c (wildcard_unescape): .. to here.
      	Don't escape dot.
      	* grub-core/script/execute.c (gettext_append): Always escape.
      	(grub_script_arglist_to_argv): Always handle escaping/unescaping.
      	* grub-core/script/yylex.l: Don't cut away the escaping.
      	* tests/grub_script_echo1.in: Add tests with wildcard.
      5e619f40
  11. 12 Mar, 2012 1 commit
  12. 11 Mar, 2012 1 commit
  13. 10 Mar, 2012 1 commit
  14. 05 Mar, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      * grub-core/net/http.c: Add TRANSLATORS comments. · ef292a87
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/normal/cmdline.c: Likewise.
      	* grub-core/normal/misc.c: Likewise.
      	* grub-core/partmap/msdos.c: Likewise.
      	* grub-core/parttool/msdospart.c: Likewise.
      	* grub-core/script/execute.c: Likewise.
      	* grub-core/script/main.c: Likewise.
      	* grub-core/term/terminfo.c: Likewise.
      	* grub-core/video/bitmap.c: Likewise.
      	* util/grub-install.in: Likewise.
      	* util/grub-mkimage.c: Likewise.
      	* util/grub-mklayout.c: Likewise.
      	* util/grub-setup.c: Likewise.
      ef292a87
  15. 04 Mar, 2012 1 commit
  16. 26 Feb, 2012 2 commits
  17. 13 Feb, 2012 1 commit
  18. 12 Feb, 2012 1 commit
  19. 04 Feb, 2012 2 commits
  20. 14 Jan, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Eliminate grub_min/grub_max prone to overflow usage. · 9c271078
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
      	(poll_nonroot_hub): Likewise.
      	* grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
      	(grub_affs_label): Likewise.
      	* grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
      	* grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
      	(grub_hfs_label): Likewise.
      	* grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
      	* grub-core/fs/zfs/zfs.c (MIN): Remove.
      	(zap_leaf_array_equal): Use grub_size. Remove MIN.
      	(zap_leaf_array_get): Likewise.
      	(dnode_get_path): Likewise.
      	* grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
      	* grub-core/io/xzio.c (grub_xzio_read): Likewise.
      	* grub-core/script/execute.c (grub_script_break): Likewise.
      	* grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
      	grub_max.
      	* grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
      	* include/grub/misc.h (grub_min): Removed.
      	(grub_max): Likewise.
      9c271078
  21. 12 Nov, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Add const keyword to grub_env_get and gettextize week days. · d35d0d37
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/hook/datehook.c (grub_datetime_names): Make const.
      	(grub_read_hook_datetime): Return const char *.
      	* grub-core/kern/env.c (grub_env_get): Return const char *. All users
      	updated.
      	* grub-core/normal/datetime.c (grub_weekday_names): Make const.
      	Mark for gettext.
      	(grub_get_weekday_name): Return const char *. Call gettext.
      	* grub-core/script/argv.c (grub_script_argv_append): Receive const
      	char * and len as the argument. All users updated.
      	(grub_script_argv_split_append): Receive const char *.
      	* include/grub/datetime.h (grub_get_weekday_name): Update proto.
      	* include/grub/env.h (grub_env_get): Likewise.
      	(grub_env_read_hook_t): Return const char *.
      	* include/grub/script_sh.h (grub_script_argv_append): Update proto.
      	(grub_script_argv_split_append): Likewise.
      d35d0d37
  22. 07 Nov, 2010 1 commit
  23. 01 Oct, 2010 1 commit
  24. 21 Sep, 2010 1 commit
  25. 17 Sep, 2010 1 commit
  26. 07 Sep, 2010 1 commit
  27. 05 Sep, 2010 1 commit
  28. 04 Sep, 2010 1 commit
  29. 03 Sep, 2010 1 commit
  30. 25 Aug, 2010 1 commit
  31. 06 May, 2010 2 commits
  32. 05 May, 2010 4 commits
  33. 30 Apr, 2010 1 commit
  34. 14 Feb, 2010 1 commit