Skip to content
Snippets Groups Projects
Commit 5ca366a9 authored by Jan Hák's avatar Jan Hák Committed by Daniel Salzman
Browse files

knotd: print error when unable to change owner of logging file

fixes #728
parent e06c5173
No related branches found
No related tags found
No related merge requests found
Pipeline #80024 passed
/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
/* Copyright (C) 2021 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -382,7 +382,7 @@ int log_update_privileges(int uid, int gid)
for (int i = 0; i < s_log->file_count; ++i) {
if (fchown(fileno(s_log->file[i]), uid, gid) < 0) {
return knot_map_errno();
log_error("failed to change log file owner");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment