diff options
author | taca <taca@pkgsrc.org> | 2004-08-17 17:32:43 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2004-08-17 17:32:43 +0000 |
commit | 2d395f1c6ddf61515f120518a6066d1b3de5ae55 (patch) | |
tree | b51b31aee246362b74ec0859cce68aa61c055b09 /net/ja-samba/patches | |
parent | a7ea67d57cc54266e8bcfb4e84451755108d6f5c (diff) | |
download | pkgsrc-2d395f1c6ddf61515f120518a6066d1b3de5ae55.tar.gz |
Update ja-samba package to 2.2.10.1.0 (samba-2.2.10-a-1.0).
Changes from 2.2.9.1.0 is a fix for CAN-2004-0686 included in samba 2.2.10
though it is already applied by ja-samba-2.2.9.1.0nb1 package.
This pkgsrc also contains a fix by Samba 2.2.11; smbd crash problem
by Windos XP SP2 client.
Diffstat (limited to 'net/ja-samba/patches')
-rw-r--r-- | net/ja-samba/patches/patch-aw | 30 | ||||
-rw-r--r-- | net/ja-samba/patches/patch-ba | 13 | ||||
-rw-r--r-- | net/ja-samba/patches/patch-bb | 13 | ||||
-rw-r--r-- | net/ja-samba/patches/patch-bc | 22 | ||||
-rw-r--r-- | net/ja-samba/patches/patch-bd | 16 | ||||
-rw-r--r-- | net/ja-samba/patches/patch-be | 36 | ||||
-rw-r--r-- | net/ja-samba/patches/patch-bf | 26 | ||||
-rw-r--r-- | net/ja-samba/patches/patch-bg | 31 |
8 files changed, 30 insertions, 157 deletions
diff --git a/net/ja-samba/patches/patch-aw b/net/ja-samba/patches/patch-aw new file mode 100644 index 00000000000..129ff921642 --- /dev/null +++ b/net/ja-samba/patches/patch-aw @@ -0,0 +1,30 @@ +$NetBSD: patch-aw,v 1.1 2004/08/17 17:32:44 taca Exp $ + +--- rpc_server/srv_spoolss_nt.c.orig 2003-07-17 20:34:06.000000000 +0900 ++++ rpc_server/srv_spoolss_nt.c +@@ -2842,6 +2842,12 @@ static WERROR printserver_notify_info(pi + info->data=NULL; + info->count=0; + ++ /* a bug in xp sp2 rc2 causes it to send a fnpcn request without ++ sending a ffpcn() request first */ ++ ++ if ( !option ) ++ return WERR_BADFID; ++ + for (i=0; i<option->count; i++) { + option_type = &(option->ctr.type[i]); + +@@ -2903,6 +2909,12 @@ static WERROR printer_notify_info(pipes_ + info->data=NULL; + info->count=0; + ++ /* a bug in xp sp2 rc2 causes it to send a fnpcn request without ++ sending a ffpcn() request first */ ++ ++ if ( !option ) ++ return WERR_BADFID; ++ + get_printer_snum(p, hnd, &snum); + + for (i=0; i<option->count; i++) { diff --git a/net/ja-samba/patches/patch-ba b/net/ja-samba/patches/patch-ba deleted file mode 100644 index 8a4f6e3e449..00000000000 --- a/net/ja-samba/patches/patch-ba +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ba,v 1.3 2004/07/23 16:45:43 taca Exp $ - ---- include/mangle.h.orig 2002-07-09 11:26:06.000000000 +0900 -+++ include/mangle.h -@@ -8,7 +8,7 @@ struct mangle_fns { - BOOL (*is_mangled)__P((const char *s)); - BOOL (*is_8_3)__P((const char *fname, BOOL check_case, BOOL allow_wildcards)); - void (*reset)__P((void)); -- BOOL (*check_cache)__P((char *s)); -+ BOOL (*check_cache)(char *s, size_t maxlen); - void (*name_map)__P((char *OutName, BOOL need83, BOOL cache83)); - }; - #endif /* _MANGLE_H_ */ diff --git a/net/ja-samba/patches/patch-bb b/net/ja-samba/patches/patch-bb deleted file mode 100644 index 7783ce876cf..00000000000 --- a/net/ja-samba/patches/patch-bb +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-bb,v 1.7 2004/07/23 16:45:43 taca Exp $ - ---- include/proto.h.orig 2003-08-04 19:18:25.000000000 +0900 -+++ include/proto.h -@@ -4492,7 +4492,7 @@ void mangle_reset_cache __P((void)); - BOOL mangle_is_mangled __P((const char *s)); - BOOL mangle_is_8_3 __P((const char *fname, BOOL check_case)); - BOOL mangle_is_8_3_wildcards __P((const char *fname, BOOL check_case)); --BOOL mangle_check_cache __P((char *s)); -+BOOL mangle_check_cache __P((char *s, size_t maxlen)); - void mangle_map __P((char *OutName, BOOL need83, BOOL cache83, int snum)); - - /* The following definitions come from smbd/mangle_hash.c */ diff --git a/net/ja-samba/patches/patch-bc b/net/ja-samba/patches/patch-bc deleted file mode 100644 index b4b38d13afa..00000000000 --- a/net/ja-samba/patches/patch-bc +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-bc,v 1.3 2004/07/23 16:45:43 taca Exp $ - ---- smbd/filename.c.orig 2003-05-20 11:17:18.000000000 +0900 -+++ smbd/filename.c -@@ -314,7 +314,7 @@ BOOL unix_convert(char *name,connection_ - */ - - if (mangle_is_mangled(start)) { -- mangle_check_cache( start ); -+ mangle_check_cache( start, sizeof(pstring) - 1 - (start - name) ); - } - - DEBUG(5,("New file %s\n",start)); -@@ -472,7 +472,7 @@ static BOOL scan_directory(const char *p - * (JRA). - */ - if (mangled) -- mangled = !mangle_check_cache( name ); -+ mangled = !mangle_check_cache( name, maxlength ); - - /* open the directory */ - if (!(cur_dir = OpenDir(conn, path, True))) { diff --git a/net/ja-samba/patches/patch-bd b/net/ja-samba/patches/patch-bd deleted file mode 100644 index 3008b828605..00000000000 --- a/net/ja-samba/patches/patch-bd +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-bd,v 1.3 2004/07/23 16:45:43 taca Exp $ - ---- smbd/mangle.c.orig 2003-05-20 11:17:18.000000000 +0900 -+++ smbd/mangle.c -@@ -97,9 +97,9 @@ BOOL mangle_is_8_3_wildcards(const char - looking for a matching name if it doesn't. It should succeed most of the time - or there will be a huge performance penalty - */ --BOOL mangle_check_cache(char *s) -+BOOL mangle_check_cache(char *s, size_t maxlen) - { -- return mangle_fns->check_cache(s); -+ return mangle_fns->check_cache(s, maxlen); - } - - /* diff --git a/net/ja-samba/patches/patch-be b/net/ja-samba/patches/patch-be deleted file mode 100644 index cf0954ce285..00000000000 --- a/net/ja-samba/patches/patch-be +++ /dev/null @@ -1,36 +0,0 @@ -$NetBSD: patch-be,v 1.1 2004/07/23 16:45:43 taca Exp $ - ---- smbd/mangle_hash.c.orig 2003-05-20 11:17:18.000000000 +0900 -+++ smbd/mangle_hash.c -@@ -622,7 +622,7 @@ static void cache_mangled_name( char *ma - * ************************************************************************** ** - */ - --static BOOL check_mangled_cache( char *s ) -+static BOOL check_mangled_cache( char *s, size_t maxlen ) - { - ubi_cacheEntryPtr FoundPtr; - char *ext_start = NULL; -@@ -660,7 +660,7 @@ static BOOL check_mangled_cache( char *s - if(saved_ext) - { - /* Replace the saved_ext as it was truncated. */ -- (void)pstrcat( s, saved_ext ); -+ (void)safe_strcat( s, saved_ext, maxlen ); - SAFE_FREE(saved_ext); - } - return( False ); -@@ -672,11 +672,11 @@ static BOOL check_mangled_cache( char *s - - DEBUG( 3, ("Found %s on mangled stack ", s) ); - -- (void)pstrcpy( s, found_name ); -+ (void)safe_strcpy( s, found_name, maxlen ); - if( saved_ext ) - { - /* Replace the saved_ext as it was truncated. */ -- (void)pstrcat( s, saved_ext ); -+ (void)safe_strcat( s, saved_ext,maxlen ); - SAFE_FREE(saved_ext); - } - diff --git a/net/ja-samba/patches/patch-bf b/net/ja-samba/patches/patch-bf deleted file mode 100644 index a7e0f13cb26..00000000000 --- a/net/ja-samba/patches/patch-bf +++ /dev/null @@ -1,26 +0,0 @@ -$NetBSD: patch-bf,v 1.1 2004/07/23 16:45:43 taca Exp $ - ---- smbd/mangle_hash2.c.orig 2003-07-17 19:41:37.000000000 +0900 -+++ smbd/mangle_hash2.c -@@ -353,7 +353,7 @@ static void mangle_reset(void) - - The filename must be able to hold at least sizeof(fstring) - */ --static BOOL check_cache(char *name) -+static BOOL check_cache(char *name, size_t maxlen) - { - u32 hash, multiplier; - int i; -@@ -391,10 +391,10 @@ static BOOL check_cache(char *name) - - if (extension[0]) { - DEBUG(10,("check_cache: %s -> %s.%s\n", name, prefix, extension)); -- slprintf(name, sizeof(fstring), "%s.%s", prefix, extension); -+ slprintf(name, maxlen, "%s.%s", prefix, extension); - } else { - DEBUG(10,("check_cache: %s -> %s\n", name, prefix)); -- fstrcpy(name, prefix); -+ safe_strcpy(name, prefix, maxlen); - } - - return True; diff --git a/net/ja-samba/patches/patch-bg b/net/ja-samba/patches/patch-bg deleted file mode 100644 index 4c365ac9ed2..00000000000 --- a/net/ja-samba/patches/patch-bg +++ /dev/null @@ -1,31 +0,0 @@ -$NetBSD: patch-bg,v 1.1 2004/07/23 16:45:43 taca Exp $ - ---- smbd/reply.c.orig 2003-07-17 19:41:37.000000000 +0900 -+++ smbd/reply.c -@@ -2191,7 +2191,7 @@ NTSTATUS unlink_internals(connection_str - */ - - if (!rc && mangle_is_mangled(mask)) -- mangle_check_cache( mask ); -+ mangle_check_cache( mask, sizeof(pstring)-1 ); - - has_wild = ms_has_wild(mask); - -@@ -4049,7 +4049,7 @@ NTSTATUS rename_internals(connection_str - */ - - if (!rc && mangle_is_mangled(mask)) -- mangle_check_cache( mask ); -+ mangle_check_cache( mask, sizeof(pstring)-1 ); - - has_wild = ms_has_wild(mask); - -@@ -4463,7 +4463,7 @@ int reply_copy(connection_struct *conn, - */ - - if (!rc && mangle_is_mangled(mask)) -- mangle_check_cache( mask ); -+ mangle_check_cache( mask, sizeof(pstring)-1 ); - - has_wild = ms_has_wild(mask); - |