static int RF_copyfile_adouble(VFS_FUNC_ARGS_COPYFILE)
/* const struct vol *vol, int sfd, const char *src, const char *dst */
{
- return 0;
-#if 0
EC_INIT;
bstring s = NULL, d = NULL;
char *dup1 = NULL;
EC_ZERO(bcatcstr(d, name));
}
- EC_ZERO(copy_file(sfd, cfrombstr(s), cfrombstr(d), 0666));
+ /* ignore errors */
+ if (copy_file(sfd, cfrombstr(s), cfrombstr(d), 0666) != 0)
+ if (errno != ENOENT)
+ EC_FAIL;
EC_CLEANUP:
bdestroy(s);
if (dup4) free(dup4);
EC_EXIT;
-#endif
}
#ifdef HAVE_SOLARIS_ACLS
}
static int RF_copyfile_ea(VFS_FUNC_ARGS_COPYFILE)
{
+ /* the EA VFS module does this all for us */
return 0;
#if 0
EC_INIT;