summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-24 06:36:22 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-24 06:36:22 +0000
commit9d863fb1681a5b03696552e1d93fe339b4bae455 (patch)
tree924ea823b7202d560603d702e93ce9d0d696d2f2 /source/include
parent552175fdcb78c79833464648b5ccdc91b935e69c (diff)
downloadsamba-9d863fb1681a5b03696552e1d93fe339b4bae455.tar.gz
samba-9d863fb1681a5b03696552e1d93fe339b4bae455.tar.xz
samba-9d863fb1681a5b03696552e1d93fe339b4bae455.zip
make sure that apps can't close one of the internal smbw file
descriptors by catching close attempts on those fds and returning EBADF.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/include/proto.h b/source/include/proto.h
index 9c78e840173..bc9b7389db6 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -2407,11 +2407,13 @@ void smbw_setup_shared(void);
char *smbw_getshared(const char *name);
void smbw_setshared(const char *name, const char *val);
int smbw_setenv(const char *name, const char *value);
+int smbw_shared_fd(int fd);
/*The following definitions come from smbwrapper/smbw.c */
void smbw_init(void);
int smbw_fd(int fd);
+int smbw_local_fd(int fd);
ino_t smbw_inode(const char *name);
void clean_fname(char *name);
char *smbw_parse_path(const char *fname, char *server, char *share, char *path);