diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-03 08:34:35 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-03 08:34:35 +0000 |
commit | a139078c4d0eae10fcc914d88ea89a6cbf9827bb (patch) | |
tree | 62a8aaa4d698c17f96f486921fa90433604d529a /source3/smbwrapper/readlink.c | |
parent | 65cfbc97ae671a8fe6a3a3b522f25ed0ce4d974d (diff) | |
download | samba-a139078c4d0eae10fcc914d88ea89a6cbf9827bb.tar.gz samba-a139078c4d0eae10fcc914d88ea89a6cbf9827bb.tar.xz samba-a139078c4d0eae10fcc914d88ea89a6cbf9827bb.zip |
lots of improvements to smbwrapper. It now works with Samba, Win95 and
WinNT servers, and correctly lists share names in /smb/SERVER/
(This used to be commit 1ea349728b8984bfe5cf5df41a87efbe17ff5ccd)
Diffstat (limited to 'source3/smbwrapper/readlink.c')
-rw-r--r-- | source3/smbwrapper/readlink.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/source3/smbwrapper/readlink.c b/source3/smbwrapper/readlink.c new file mode 100644 index 00000000000..57211326aa0 --- /dev/null +++ b/source3/smbwrapper/readlink.c @@ -0,0 +1,32 @@ +/* + Unix SMB/Netbios implementation. + Version 2.0 + SMB wrapper functions + Copyright (C) Andrew Tridgell 1998 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include "wrapper.h" + + int readlink(char *path, char *buf, size_t bufsize) +{ + if (smbw_path(path)) { + return smbw_readlink(path, buf, bufsize); + } + + return real_readlink(path, buf, bufsize); +} + |