Skip to content

Commit 2d0e4b3

Browse files
committed
Fix file closed twice in CopyRegularFileDiskPerms
Changelog: Title Ticket: CFE-4489 Signed-off-by: Victor Moene <victor.moene@northern.tech>
1 parent 25cb0e6 commit 2d0e4b3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libpromises/files_copy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ bool CopyRegularFileDiskPerms(const char *source, const char *destination,
9999
}
100100

101101
close(sd);
102-
close(dd);
103102
return ret;
104103
}
105104

0 commit comments

Comments
 (0)