Call init_sec_ctx() instead of init_uid().
authorTim Potter <tpot@samba.org>
Fri, 23 Jun 2000 05:54:49 +0000 (05:54 +0000)
committerTim Potter <tpot@samba.org>
Fri, 23 Jun 2000 05:54:49 +0000 (05:54 +0000)
Delete OriginalDir stuff.

source/smbd/server.c

index b28ba6d4ef0090ca7989c52b786dd113cf3dfd2d..854a61d385b753ca868f19302b890ab702a3b573 100644 (file)
@@ -43,10 +43,7 @@ extern pstring user_socket_options;
 extern int dcelogin_atmost_once;
 #endif /* WITH_DFS */
 
-
 extern fstring remote_machine;
-extern pstring OriginalDir;
-
 
 /* really we should have a top level context structure that has the
    client file descriptor as an element. That would require a major rewrite :(
@@ -395,7 +392,6 @@ static BOOL dump_core(void)
 }
 #endif
 
-
 /****************************************************************************
 exit the server
 ****************************************************************************/
@@ -440,8 +436,6 @@ void exit_server(char *reason)
        exit(0);
 }
 
-
-
 /****************************************************************************
   initialise connect, service and file structs
 ****************************************************************************/
@@ -634,9 +628,7 @@ static void usage(char *pname)
           so set our umask to 0 */
        umask(0);
 
-       dos_GetWd(OriginalDir);
-
-       init_uid();
+       init_sec_ctx();
 
        reopen_logs();