~ubuntu-branches/ubuntu/trusty/grub2/trusty-updates

« back to all changes in this revision

Viewing changes to grub-core/osdep/apple/hostdisk.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-12-26 00:52:47 UTC
  • mto: (17.6.37 experimental)
  • mto: This revision was merged to the branch mainline in revision 184.
  • Revision ID: package-import@ubuntu.com-20131226005247-dalaa9te0g0d49kd
Tags: upstream-2.02~beta2
ImportĀ upstreamĀ versionĀ 2.02~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
  flags |= O_BINARY;
81
81
#endif
82
82
 
83
 
  ret = open (os_dev, flags, S_IRUSR | S_IWUSR);
 
83
  ret = open (os_dev, flags, S_IROTH | S_IRGRP | S_IRUSR | S_IWUSR);
84
84
 
85
85
  /* If we can't have exclusive access, try shared access */
86
86
  if (ret < 0)
87
 
    ret = open (os_dev, flags | O_SHLOCK, S_IRUSR | S_IWUSR);
 
87
    ret = open (os_dev, flags | O_SHLOCK, S_IROTH | S_IRGRP | S_IRUSR | S_IWUSR);
88
88
 
89
89
  return ret;
90
90
}