summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-09-03 03:14:31 +0000
committerAndrew Tridgell <tridge@samba.org>1998-09-03 03:14:31 +0000
commit0b5cc173099c7fd5ea4865ef4197739ec87e4c35 (patch)
tree78628f6843f0685683573efafc710540f4953e50 /source3/include
parent0067ea1b5a634db442ed8f89558dc4d43d9f3fe6 (diff)
downloadsamba-0b5cc173099c7fd5ea4865ef4197739ec87e4c35.tar.gz
samba-0b5cc173099c7fd5ea4865ef4197739ec87e4c35.tar.bz2
samba-0b5cc173099c7fd5ea4865ef4197739ec87e4c35.zip
fixed a bug in the name mangling code. It implicitly assumed that
mangling a name can't increase it's size which isn't true. (imagine a file called "L B" which mangles to "LB~XX") The symptoms were that users couldn't run batch files from short directory names that contained non 8.3 characters (such as spaces). (This used to be commit c319d8ea3f8b42bb3a8e501642971ed0bdb21583)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 01ae342f98..969b8c6a86 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -170,7 +170,7 @@ int dos_open(char *fname,int flags,int mode);
DIR *dos_opendir(char *dname);
int dos_stat(char *fname,SMB_STRUCT_STAT *sbuf);
int sys_waitpid(pid_t pid,int *status,int options);
-int dos_lstat(char *fname,struct stat *sbuf);
+int dos_lstat(char *fname,SMB_STRUCT_STAT *sbuf);
int dos_mkdir(char *dname,int mode);
int dos_rmdir(char *dname);
int dos_chdir(char *dname);
@@ -305,7 +305,6 @@ int set_filelen(int fd, long len);
int byte_checksum(char *buf,int len);
char *dirname_dos(char *path,char *buf);
void *Realloc(void *p,int size);
-void Abort(void );
BOOL get_myname(char *my_name,struct in_addr *ip);
BOOL ip_equal(struct in_addr ip1,struct in_addr ip2);
int open_socket_in(int type, int port, int dlevel,uint32 socket_addr);
@@ -2052,8 +2051,8 @@ BOOL is_mangled( char *s );
BOOL is_8_3( char *fname, BOOL check_case );
void reset_mangled_cache( void );
BOOL check_mangled_cache( char *s );
-void mangle_name_83( char *s, int s_len );
-BOOL name_map_mangle( char *OutName, BOOL need83, int snum );
+void mangle_name_83( char *s);
+BOOL name_map_mangle(char *OutName, BOOL need83, int snum);
/*The following definitions come from smbd/message.c */
@@ -2291,7 +2290,6 @@ char *quotequotes(char *s);
void quote_spaces(char *buf);
void cgi_setup(char *rootdir, int auth_required);
char *cgi_baseurl(void);
-char *cgi_rooturl(void);
char *cgi_pathinfo(void);
char *cgi_remote_host(void);
char *cgi_remote_addr(void);