Magellan Linux

Diff of /tags/grubby-8_36/grubby.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1859 by niro, Mon Jul 2 13:15:20 2012 UTC revision 1866 by niro, Mon Jul 2 13:21:25 2012 UTC
# Line 1310  static int writeConfig(struct grubConfig Line 1310  static int writeConfig(struct grubConfig
1310    
1311      /* most likely the symlink is relative, so change our      /* most likely the symlink is relative, so change our
1312         directory to the dir of the symlink */         directory to the dir of the symlink */
1313              rc = chdir(dirname(outName));              rc = chdir(dirname(strdupa(outName)));
1314      do {      do {
1315   buf = alloca(len + 1);   buf = alloca(len + 1);
1316   rc = readlink(basename(outName), buf, len);   rc = readlink(basename(outName), buf, len);
# Line 4069  int main(int argc, const char ** argv) { Line 4069  int main(int argc, const char ** argv) {
4069      if (!yconfig)      if (!yconfig)
4070   yrc = 1;   yrc = 1;
4071      else      else
4072   yrc = checkForYaboot(lconfig);   yrc = checkForYaboot(yconfig);
4073   }   }
4074    
4075   if (lrc == 1 || grc == 1 || gr2c == 1 || extrc == 1 || yrc == 1 ||   if (lrc == 1 || grc == 1 || gr2c == 1 || extrc == 1 || yrc == 1 ||

Legend:
Removed from v.1859  
changed lines
  Added in v.1866