// at first, set the ILI flags on 'src'
if (vc_set_iattr_compat(src, src_stat->st_dev, src_stat->st_ino,
- 0, VC_IATTR_IUNLINK, VC_IATTR_IUNLINK)==-1)
+ 0, VC_IATTR_IUNLINK, VC_IATTR_IUNLINK,
+ &src_stat->st_mode)==-1)
return false;
// now, create a temporary filename