~ilya-yanok/ubuntu/precise/grub2/fix-for-948716

« back to all changes in this revision

Viewing changes to normal/menu.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2009-07-25 19:00:53 UTC
  • mfrom: (1.6.3 upstream)
  • mto: (17.4.13 sid)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20090725190053-uv3lm6ya3zxs77ep
ImportĀ upstreamĀ versionĀ 1.96+20090725

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <grub/menu_viewer.h>
27
27
#include <grub/command.h>
28
28
#include <grub/parser.h>
29
 
#include <grub/auth.h>
30
29
 
31
30
/* Get a menu entry by its index in the entry list.  */
32
31
grub_menu_entry_t
125
124
void
126
125
grub_menu_execute_entry(grub_menu_entry_t entry)
127
126
{
128
 
  grub_err_t err = GRUB_ERR_NONE;
129
 
 
130
 
  if (entry->restricted)
131
 
    err = grub_auth_check_authentication (entry->users);
132
 
 
133
 
  if (err)
134
 
    {
135
 
      grub_print_error ();
136
 
      grub_errno = GRUB_ERR_NONE;
137
 
      return;
138
 
    }
139
 
 
140
127
  grub_parser_execute ((char *) entry->sourcecode);
141
128
 
142
129
  if (grub_errno == GRUB_ERR_NONE && grub_loader_is_loaded ())