(fcc_move): make sure ->version is uptodate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22120 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -776,7 +776,18 @@ fcc_move(krb5_context context, krb5_ccache from, krb5_ccache to)
|
|||||||
ret = errno;
|
ret = errno;
|
||||||
krb5_set_error_string(context, "Rename of file failed: %s",
|
krb5_set_error_string(context, "Rename of file failed: %s",
|
||||||
strerror(ret));
|
strerror(ret));
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
/* make sure ->version is uptodate */
|
||||||
|
{
|
||||||
|
krb5_storage *sp;
|
||||||
|
int fd;
|
||||||
|
ret = init_fcc (context, to, &sp, &fd);
|
||||||
|
krb5_storage_free(sp);
|
||||||
|
fcc_unlock(context, fd);
|
||||||
|
close(fd);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user