fixed name of the run.rev symlink; there was a '/' missing which
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 15 Feb 2005 18:04:11 +0000 (18:04 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 15 Feb 2005 18:04:11 +0000 (18:04 +0000)
caused a pollution of the /etc/vservers/.defaults directory with
'run.revXXX' entries. (reported and analyzed by Olivier Poitrey).

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1859 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/save_ctxinfo.c

index 44439ac..2f84d3f 100644 (file)
@@ -88,7 +88,7 @@ int main(int argc, char *argv[])
   }
   Eclose(fd);
 
-  strcpy(runfile, DEFAULT_PKGSTATEREVDIR);
+  strcpy(runfile, DEFAULT_PKGSTATEREVDIR "/");
   strncat(runfile, buf, len);
   unlink(runfile);
   EsymlinkD(argv[1], runfile);