]> git.meshlink.io Git - meshlink/commit
Refuse invitees if we can't delete the invitation file.
authorGuus Sliepen <guus@meshlink.io>
Tue, 5 Nov 2019 19:46:58 +0000 (20:46 +0100)
committerGuus Sliepen <guus@meshlink.io>
Tue, 5 Nov 2019 19:46:58 +0000 (20:46 +0100)
commit4d2e290e8670ab07ae402a6e1320ef09144089f8
tree567954fbea1913c76deaa5010282e546c3bb6a57
parentcb48bca1a4769ac535f94418ac8599eadcfa2571
Refuse invitees if we can't delete the invitation file.

If the call to unlink() or a subsequent sync of the invitation directory
fails, don't allow the invitee access, to prevent an invitation from
being used twice.
src/conf.c