sd-journal: use stat_verify_linked()
This commit is contained in:
@@ -734,8 +734,9 @@ int journal_file_fstat(JournalFile *f) {
|
||||
return r;
|
||||
|
||||
/* Refuse appending to files that are already deleted */
|
||||
if (f->last_stat.st_nlink <= 0)
|
||||
return -EIDRM;
|
||||
r = stat_verify_linked(&f->last_stat);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user