Magellan Linux

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

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

revision 1844 by niro, Mon Jul 2 12:59:07 2012 UTC revision 1845 by niro, Mon Jul 2 12:59:39 2012 UTC
# Line 1323  static int writeConfig(struct grubConfig Line 1323  static int writeConfig(struct grubConfig
1323    
1324      /* most likely the symlink is relative, so change our      /* most likely the symlink is relative, so change our
1325         directory to the dir of the symlink */         directory to the dir of the symlink */
1326              rc = chdir(dirname(strdupa(outName)));              rc = chdir(dirname(outName));
1327      do {      do {
1328   buf = alloca(len + 1);   buf = alloca(len + 1);
1329   rc = readlink(basename(outName), buf, len);   rc = readlink(basename(outName), buf, len);

Legend:
Removed from v.1844  
changed lines
  Added in v.1845