Revert "If there are no hardlinks, dont bother with s-bit and caps removal"
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 22 Jun 2010 13:51:41 +0000 (15:51 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Jun 2010 13:10:15 +0000 (16:10 +0300)
commit26874707edfe73e153383284f9fe33cfd9879bb1
tree48258de410537cb4b75754cd61946eb2e9d8d446
parent7583fcc3416e5e4accf1c52bc8903149b1314145
Revert "If there are no hardlinks, dont bother with s-bit and caps removal"

Deciding whether it is necessary to remove the SUID bit based on
the current link count creates an opportunity for a race condition.
A hardlink could be created just between lstat() and chmod().

This reverts commit 89be57ad9239c9ada0cba94a5003876b456d46bf.
lib/fsm.c