From 770acd0a8f2ccaa4320a60f82545dba0e3b94b02 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 4 Oct 1998 14:07:18 +0000 Subject: don't list the IPC$ share in directory listings (it causes infinite recursion) (This used to be commit 8d74f7bfdc217e95a7e300d06c3bf4e8d4877a6a) --- source3/smbwrapper/smbw_dir.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/smbwrapper') diff --git a/source3/smbwrapper/smbw_dir.c b/source3/smbwrapper/smbw_dir.c index 5a45c11175..913fc9662e 100644 --- a/source3/smbwrapper/smbw_dir.c +++ b/source3/smbwrapper/smbw_dir.c @@ -106,6 +106,8 @@ static void smbw_share_add(const char *share, uint32 type, const char *comment) { struct file_info finfo; + if (strcmp(share,"IPC$") == 0) return; + ZERO_STRUCT(finfo); pstrcpy(finfo.name, share); -- cgit