diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2025-07-29 12:45:25 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2025-07-29 12:47:37 +0000 |
| commit | 98eb6f0eaa50d8bd9a6794f0a9da2eddeae5bcd8 (patch) | |
| tree | f6bd6f5def1bce3dfcc8d8c4b51eebdb1c30f5f1 /sys/ufs | |
| parent | 0ded4647215cffde9076ab4e82870b0f491bd0b2 (diff) | |
Diffstat (limited to 'sys/ufs')
| -rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 2757fb066981..050b21c2be0b 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -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) { |
