mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 23:04:36 -04:00
ufs: restore conditional
Fixes: 610319c766
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
This commit is contained in:
parent
0ded464721
commit
98eb6f0eaa
1 changed files with 2 additions and 1 deletions
|
|
@ -1642,7 +1642,8 @@ relock:
|
|||
softdep_change_linkcnt(tip);
|
||||
}
|
||||
error = ufs_dirrewrite(tdp, tip, fip->i_number,
|
||||
IFTODT(fip->i_mode), doingdirectory);
|
||||
IFTODT(fip->i_mode), (doingdirectory && newparent != 0) ?
|
||||
newparent != 0: doingdirectory);
|
||||
if (error) {
|
||||
if (doingdirectory) {
|
||||
if (newparent == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue