- 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:
parent
a92189b377
commit
e346bd8177
|
@ -580,6 +580,7 @@ smbfs_rename(ap)
|
||||||
u_int16_t flags = 6;
|
u_int16_t flags = 6;
|
||||||
int error=0;
|
int error=0;
|
||||||
|
|
||||||
|
scred = NULL;
|
||||||
/* Check for cross-device rename */
|
/* Check for cross-device rename */
|
||||||
if ((fvp->v_mount != tdvp->v_mount) ||
|
if ((fvp->v_mount != tdvp->v_mount) ||
|
||||||
(tvp && (fvp->v_mount != tvp->v_mount))) {
|
(tvp && (fvp->v_mount != tvp->v_mount))) {
|
||||||
|
@ -730,7 +731,7 @@ smbfs_mkdir(ap)
|
||||||
*ap->a_vpp = vp;
|
*ap->a_vpp = vp;
|
||||||
out:
|
out:
|
||||||
smbfs_free_scred(scred);
|
smbfs_free_scred(scred);
|
||||||
return 0;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue