Diff of /tags/grubby-8_15/grubby.c
Parent Directory | Revision Log | Patch
trunk/grubby/grubby.c revision 1864 by niro, Mon Jul 2 13:20:31 2012 UTC | tags/grubby-8_15/grubby.c revision 1871 by niro, Mon Jul 2 13:28:01 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)); | char *dir = strdupa(outName); |
1314 | rc = chdir(dirname(dir)); | |
1315 | free(dir); | |
1316 | do { | do { |
1317 | buf = alloca(len + 1); | buf = alloca(len + 1); |
1318 | rc = readlink(basename(outName), buf, len); | rc = readlink(basename(outName), buf, len); |
|