1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

Inline the once-used macro "init_dfsroot"

This commit is contained in:
Volker Lendecke 2008-10-18 19:41:12 +02:00
parent 7af7935d0e
commit ded09b28de
2 changed files with 6 additions and 9 deletions

View File

@ -64,12 +64,4 @@ struct dfs_path {
bool posix_path;
};
#define init_dfsroot(conn, inbuf, outbuf) \
{ if (lp_msdfs_root(SNUM(conn)) && lp_host_msdfs()) { \
DEBUG(2,("Serving %s as a Dfs root\n", \
lp_servicename(SNUM(conn)) )); \
SSVAL(outbuf, smb_vwv2, SMB_SHARE_IN_DFS \
| SVAL(outbuf, smb_vwv2)); \
} }
#endif /* _MSDFS_H */

View File

@ -747,7 +747,12 @@ void reply_tcon_and_X(struct smb_request *req)
SSVAL(req->outbuf, smb_vwv2, SMB_SUPPORT_SEARCH_BITS|
(lp_csc_policy(SNUM(conn)) << 2));
init_dfsroot(conn, req->inbuf, req->outbuf);
if (lp_msdfs_root(SNUM(conn)) && lp_host_msdfs()) {
DEBUG(2,("Serving %s as a Dfs root\n",
lp_servicename(SNUM(conn)) ));
SSVAL(req->outbuf, smb_vwv2,
SMB_SHARE_IN_DFS | SVAL(req->outbuf, smb_vwv2));
}
}