Magellan Linux

Diff of /trunk/grubby/grubby.c

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

revision 1865 by niro, Mon Jul 2 13:20:31 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);

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