vfs: Don't mask shadow_copy2_convert()'s errno
authorVolker Lendecke <vl@samba.org>
Fri, 4 Mar 2022 15:38:34 +0000 (16:38 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 10 Mar 2022 18:23:35 +0000 (18:23 +0000)
commitc51f9ab233e548010816f9774784880340fa8c79
tree23c520790bfd96e20ded664d94bcc2391543a562
parentdb94eefdd540e5c143f4ace9bde0bf689b089c97
vfs: Don't mask shadow_copy2_convert()'s errno

If it's really ENOMEM, shadow_copy2_convert() did set this itself. It
might also return ENOENT for example. Found this while working on
other patches.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_shadow_copy2.c