make compile

This commit is contained in:
Love Hornquist Astrand
2009-07-30 14:25:12 +02:00
parent 00658426b2
commit 11024751a5
2 changed files with 11 additions and 7 deletions

View File

@@ -1111,10 +1111,14 @@ do_store(char *name, char *mode, int unique)
if(guest && filename_check(name))
return;
if (unique && stat(name, &st) == 0 &&
(name = gunique(name)) == NULL) {
LOGCMD(*mode == 'w' ? "put" : "append", name);
return;
if (unique) {
char *uname;
if (stat(name, &st) == 0) {
if ((uname = gunique(name)) == NULL)
return;
name = uname;
}
LOGCMD(*mode == 'w' ? "put" : "append", name);
}
if (restart_point)