Revert "smb: Remove redundant variable"
This reverts commit fc3e4816. It turned
out that the variable is not actually redundant. It seems that the
libsmbclient library can return EPERM
even without calling the
auth_callback
in certain cases. In such a case, the mount_cancelled
variable can't be set to TRUE
, so it ends up with a livelock.
Fixes: #703 (closed)