projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05e13b3
)
repart: fix incorrect error code propagation
author
Lennart Poettering
<lennart@poettering.net>
Mon, 19 Apr 2021 15:35:54 +0000
(17:35 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 19 Apr 2021 21:16:02 +0000
(23:16 +0200)
src/partition/repart.c
patch
|
blob
|
history
diff --git
a/src/partition/repart.c
b/src/partition/repart.c
index 04d5bb18f42ed2609d517f08172e4f2348f5961a..6ad12772fdd866015a09949326ac36a97e8b668d 100644
(file)
--- a/
src/partition/repart.c
+++ b/
src/partition/repart.c
@@
-2710,7
+2710,7
@@
static int do_copy_files(Partition *p, const char *fs) {
pfd = chase_symlinks_and_open(dn, fs, CHASE_PREFIX_ROOT|CHASE_WARN, O_RDONLY|O_DIRECTORY|O_CLOEXEC, NULL);
if (pfd < 0)
- return log_error_errno(
t
fd, "Failed to open parent directory of target: %m");
+ return log_error_errno(
p
fd, "Failed to open parent directory of target: %m");
tfd = openat(pfd, basename(*target), O_CREAT|O_EXCL|O_WRONLY|O_CLOEXEC, 0700);
if (tfd < 0)