Re: [PATCH 1/7] cifs: merge __{cifs,smb2}_reconnect[_tcon]() into cifs_tree_connect()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Paulo,

> +		if (tcon->ipc) {
> +			scnprintf(tree, MAX_TREE_SIZE, "\\\\%s\\IPC$", share);
> +			rc = ops->tree_connect(xid, tcon->ses, tree, tcon, nlsc);
> +		} else {
> +			scnprintf(tree, MAX_TREE_SIZE, "\\%s", share);
> +			rc = ops->tree_connect(xid, tcon->ses, tree, tcon, nlsc);
> +			if (!rc) {
> +				rc = update_super_prepath(tcon, prefix, prefix_len);
> +				break;
> +			}
> +		}

The original code used:

-		scnprintf(tree, MAX_TREE_SIZE, "\\%.*s", (int)share_len,
-			  share);

So it's no longer identical.

Was the share_len code added after my initial patch?

metze

Attachment: signature.asc
Description: OpenPGP digital signature


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux