diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-04 14:07:18 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-04 14:07:18 +0000 |
commit | 8d74f7bfdc217e95a7e300d06c3bf4e8d4877a6a (patch) | |
tree | 5ee1ed95f00eb361caea2a92743893f76de250f4 | |
parent | e5c7cabae4826bde819b94a48bc4674dcd69da21 (diff) | |
download | samba-8d74f7bfdc217e95a7e300d06c3bf4e8d4877a6a.tar.gz samba-8d74f7bfdc217e95a7e300d06c3bf4e8d4877a6a.tar.xz samba-8d74f7bfdc217e95a7e300d06c3bf4e8d4877a6a.zip |
don't list the IPC$ share in directory listings (it causes infinite
recursion)
-rw-r--r-- | source/smbwrapper/smbw_dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbwrapper/smbw_dir.c b/source/smbwrapper/smbw_dir.c index 5a45c111753..913fc9662ea 100644 --- a/source/smbwrapper/smbw_dir.c +++ b/source/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); |