View | Details | Raw Unified | Return to bug 268005
Collapse All | Expand All

(-)b/sys/fs/msdosfs/msdosfs_vnops.c (-1 / +3 lines)
Lines 1180-1187 msdosfs_rename(struct vop_rename_args *ap) Link Here
1180
	memcpy(oldname, fip->de_Name, 11);
1180
	memcpy(oldname, fip->de_Name, 11);
1181
	memcpy(fip->de_Name, toname, 11);	/* update denode */
1181
	memcpy(fip->de_Name, toname, 11);	/* update denode */
1182
	error = msdosfs_lookup_ino(tdvp, NULL, tcnp, &scn, &blkoff);
1182
	error = msdosfs_lookup_ino(tdvp, NULL, tcnp, &scn, &blkoff);
1183
	if (error == EJUSTRETURN)
1183
	if (error == EJUSTRETURN) {
1184
		tdip->de_fndoffset = to_diroffset;
1184
		error = createde(fip, tdip, NULL, tcnp);
1185
		error = createde(fip, tdip, NULL, tcnp);
1186
	}
1185
	if (error != 0) {
1187
	if (error != 0) {
1186
		memcpy(fip->de_Name, oldname, 11);
1188
		memcpy(fip->de_Name, oldname, 11);
1187
		goto unlock;
1189
		goto unlock;

Return to bug 268005