mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
removed stat() call in lp_add_home()
(This used to be commit 07c7048aa4ef37f1b7af228ede391ab16503d9a1)
This commit is contained in:
parent
01da7d5617
commit
278744478b
@ -1977,13 +1977,6 @@ BOOL lp_add_home(const char *pszHomename, int iDefaultService,
|
||||
int i;
|
||||
pstring newHomedir;
|
||||
|
||||
SMB_STRUCT_STAT buf;
|
||||
|
||||
/* if the user's home directory doesn't exist, then don't
|
||||
add it to the list of available shares */
|
||||
if (sys_stat(pszHomedir, &buf))
|
||||
return False;
|
||||
|
||||
i = add_a_service(ServicePtrs[iDefaultService], pszHomename);
|
||||
|
||||
if (i < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user