mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-22 00:00:03 +03:00
Fix allow empty passphrases in unlock
Fixes issues https://github.com/koverstreet/bcachefs-tools/issues/314
This commit is contained in:
parent
57cd58db1e
commit
134bdf622f
@ -124,10 +124,6 @@ char *read_file_str(int dirfd, const char *path)
|
||||
buf[len] = '\0';
|
||||
if (len && buf[len - 1] == '\n')
|
||||
buf[len - 1] = '\0';
|
||||
if (!strlen(buf)) {
|
||||
free(buf);
|
||||
buf = NULL;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user