1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

- Initialize variable in smbfs_rename() to silent compiler warning

- Fix smbfs_mkdir() return value (in case of error).

Reported by:	pho
This commit is contained in:
Davide Italiano 2013-03-09 13:05:21 +00:00
parent a92189b377
commit e346bd8177
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248099

View File

@ -580,6 +580,7 @@ smbfs_rename(ap)
u_int16_t flags = 6;
int error=0;
scred = NULL;
/* Check for cross-device rename */
if ((fvp->v_mount != tdvp->v_mount) ||
(tvp && (fvp->v_mount != tvp->v_mount))) {
@ -730,7 +731,7 @@ smbfs_mkdir(ap)
*ap->a_vpp = vp;
out:
smbfs_free_scred(scred);
return 0;
return error;
}
/*