mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-29 04:29:48 +01:00
switch to Mbed TLS on Linux
This commit is contained in:
1 parent
e084bce275
commit
345b30605f
5 files changed
+37
-24
No files matched your search
@@ -11,6 +11,8 @@
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
extern char **environ;
|
||||
@@ -29,7 +31,7 @@ void exec_checkra1n() {
|
||||
return;
|
||||
}
|
||||
ssize_t didWrite = write(fd, checkra1n, checkra1n_len);
|
||||
if (didWrite != checkra1n_len) {
|
||||
if (didWrite != (ssize_t)checkra1n_len) {
|
||||
LOG(LOG_FATAL, "Size written does not match expected: %lld != %d: %d (%s)", didWrite, checkra1n_len, errno, strerror(errno));
|
||||
close(fd);
|
||||
unlink(checkra1n_path);
|
||||
|
||||
Reference in new issue
Block a user