summaryrefslogtreecommitdiff
path: root/source3/smbwrapper
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-04 14:07:18 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-04 14:07:18 +0000
commit770acd0a8f2ccaa4320a60f82545dba0e3b94b02 (patch)
tree86fcbc46c0c24813f96fd6b8d3d969109a2ebddc /source3/smbwrapper
parent3a8232644e04a4cfdcbe2061f0556b78b4045191 (diff)
downloadsamba-770acd0a8f2ccaa4320a60f82545dba0e3b94b02.tar.gz
samba-770acd0a8f2ccaa4320a60f82545dba0e3b94b02.tar.bz2
samba-770acd0a8f2ccaa4320a60f82545dba0e3b94b02.zip
don't list the IPC$ share in directory listings (it causes infinite
recursion) (This used to be commit 8d74f7bfdc217e95a7e300d06c3bf4e8d4877a6a)
Diffstat (limited to 'source3/smbwrapper')
-rw-r--r--source3/smbwrapper/smbw_dir.c2
1 files changed, 2 insertions, 0 deletions
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);