mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
copy: propagate error in fd_copy_directory()
Follow-up for 01428141ba.
Fixes CID#1513190.
This commit is contained in:
@@ -1084,6 +1084,9 @@ finish:
|
||||
return -errno;
|
||||
}
|
||||
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
return copy_flags & COPY_LOCK_BSD ? TAKE_FD(fdt) : 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user