From 465ffbadb8ec6f98d337319473c17720cb41bacd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 12 Feb 2010 18:50:54 -0800 Subject: Remove #if SOFTLINK_OPTIMIZATION code. This hasn't been turned on or been capable of doing so for many years now. Makes this jumbo function smaller... Jeremy. --- source3/smbd/service.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'source3') diff --git a/source3/smbd/service.c b/source3/smbd/service.c index d8ba4fee65..4f55ea924a 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -1037,23 +1037,6 @@ connection_struct *make_connection_snum(struct smbd_server_connection *sconn, string_set(&conn->origpath,conn->connectpath); -#if SOFTLINK_OPTIMISATION - /* resolve any soft links early if possible */ - if (vfs_ChDir(conn,conn->connectpath) == 0) { - TALLOC_CTX *ctx = talloc_tos(); - char *s = vfs_GetWd(ctx,s); - if (!s) { - *status = map_nt_error_from_unix(errno); - goto err_root_exit; - } - if (!set_conn_connectpath(conn,s)) { - *status = NT_STATUS_NO_MEMORY; - goto err_root_exit; - } - vfs_ChDir(conn,conn->connectpath); - } -#endif - /* Figure out the characteristics of the underlying filesystem. This * assumes that all the filesystem mounted withing a share path have * the same characteristics, which is likely but not guaranteed. -- cgit