Builds a pathname where the basename is of the form ".
#" + the basename of filename, for instance used in a two-stage commit file write.
filename
a pathname
The new pathname. It must be free'd with g_free.