diff options
author | imp <imp@FreeBSD.org> | 1999-02-26 05:34:16 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-02-26 05:34:16 +0000 |
commit | b4c5cb05603484a51d90037ef2c7bb6d35115c2b (patch) | |
tree | 88362d61a3396da108fc00f5c16fe2784708d102 /sys/pci | |
parent | f508af76207faff73c41e390b94663e30c6ad40a (diff) | |
download | FreeBSD-src-b4c5cb05603484a51d90037ef2c7bb6d35115c2b.zip FreeBSD-src-b4c5cb05603484a51d90037ef2c7bb6d35115c2b.tar.gz |
Fix last commit based on feedback from Guido, Bruce and Terry.
Specifically, the test was in the wrong place, lacked a cast, didn't
unlock the node, and exited to bad rather than abortit. Now we don't
allow renaming of a file with LINK_MAX references. Move the test to
earlier in the code as it is closer to where ip is obtained, as that
is the style of the rest of the function.
Didn't fix the problems bruce pointed out in the rename man page to
include EMLINK, nor address his complaints about how the whole idea of
incrementing the link count during a rename is potentially asking for
trouble.
Also didn't try to correct potential problem Terry pointed out with
decrements not being similarly protected against underflow.
Diffstat (limited to 'sys/pci')
0 files changed, 0 insertions, 0 deletions