[Commits] r660 - trunk/daemon/src

new-commit at lists.openvcp.org new-commit at lists.openvcp.org
Sat May 2 17:27:24 UTC 2009


Author: cryptronic
Date: 2009-05-02 17:27:24 +0000 (Sat, 02 May 2009)
New Revision: 660

Modified:
   trunk/daemon/src/userbackup.c
Log:
bugfix


Modified: trunk/daemon/src/userbackup.c
===================================================================
--- trunk/daemon/src/userbackup.c	2009-05-02 17:22:35 UTC (rev 659)
+++ trunk/daemon/src/userbackup.c	2009-05-02 17:27:24 UTC (rev 660)
@@ -125,7 +125,7 @@
 
 	backupname = concat(name, "_", year, ".", month, ".", day, "_", hour, ":", min, NULL);
 	userbackupdir = concat(global_settings.userbackup_dir, "/", backupname, NULL);
-	homedir = concat(global_settings.root_dir, "/", name, NULL);
+	homedir = concat(global_settings.root_dir, "/", name, "/", NULL);
 
 	if(execb_cmd("rsync", "rsync", "-a", homedir, userbackupdir, NULL) != 0)
 	{
@@ -229,7 +229,7 @@
 	backupname = (char *)ovcp_data_get(arg1);
 
 	userbackupdir = concat(global_settings.userbackup_dir, "/", backupname, NULL);
-	homedir = concat(global_settings.root_dir, "/", name, NULL);
+	homedir = concat(global_settings.root_dir, "/", name, "/", NULL);
 
 	response = ovcp_response_new();
 



More information about the Commits mailing list