Magellan Linux

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

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

revision 1931 by niro, Mon Oct 1 12:06:26 2012 UTC revision 1934 by niro, Mon Oct 1 12:08:46 2012 UTC
# Line 1313  static int writeConfig(struct grubConfig Line 1313  static int writeConfig(struct grubConfig
1313      /* most likely the symlink is relative, so change our      /* most likely the symlink is relative, so change our
1314         directory to the dir of the symlink */         directory to the dir of the symlink */
1315      char *dir = strdupa(outName);      char *dir = strdupa(outName);
1316              rc = chdir(dirname(dir));      rc = chdir(dirname(dir));
     free(dir);  
1317      do {      do {
1318   buf = alloca(len + 1);   buf = alloca(len + 1);
1319   rc = readlink(basename(outName), buf, len);   rc = readlink(basename(outName), buf, len);

Legend:
Removed from v.1931  
changed lines
  Added in v.1934