svn commit: samba r19009 - in branches/SAMBA_4_0/source/lib/ldb/ldb_ldap: .
Author: tridge Date: 2006-09-30 07:54:20 + (Sat, 30 Sep 2006) New Revision: 19009 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=19009 Log: ensure that data values from ldap libs are null terminated, to allow ldb_msg_find_attr_as_string() to work correctly. Thanks to Jim Myers for spotting this! Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c === --- branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c 2006-09-29 21:26:33 UTC (rev 19008) +++ branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c 2006-09-30 07:54:20 UTC (rev 19009) @@ -210,10 +210,15 @@ } for (i=0;icount;i++) { - el-values[i].data = talloc_memdup(el-values, bval[i]-bv_val, bval[i]-bv_len); + /* we have to ensure this is null terminated so that + ldb_msg_find_attr_as_string() can work */ + el-values[i].data = talloc_size(el-values, bval[i]-bv_len+1); if (!el-values[i].data) { + errno = ENOMEM; return -1; } + memcpy(el-values[i].data, bval[i]-bv_val, bval[i]-bv_len); + el-values[i].data[bval[i]-bv_len] = 0; el-values[i].length = bval[i]-bv_len; el-num_values++; }
svn commit: samba r19010 - in branches/SAMBA_3_0/source/smbd: .
Author: vlendec Date: 2006-09-30 09:45:53 + (Sat, 30 Sep 2006) New Revision: 19010 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=19010 Log: Fix bug 4137 Modified: branches/SAMBA_3_0/source/smbd/share_access.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/share_access.c === --- branches/SAMBA_3_0/source/smbd/share_access.c 2006-09-30 07:54:20 UTC (rev 19009) +++ branches/SAMBA_3_0/source/smbd/share_access.c 2006-09-30 09:45:53 UTC (rev 19010) @@ -217,6 +217,10 @@ const char *list[2]; list[0] = lp_username(snum); list[1] = NULL; + if ((list[0] == NULL) || (*list[0] == '\0')) { + DEBUG(0, ('only user = yes' and no 'username ='\n)); + return False; + } if (!token_contains_name_in_list(NULL, lp_servicename(snum), token, list)) { DEBUG(10, (%s != 'username'\n, username));
svn commit: samba r19011 - in branches/SAMBA_3_0/source/lib/replace: .
Author: vlendec Date: 2006-09-30 14:12:02 + (Sat, 30 Sep 2006) New Revision: 19011 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=19011 Log: Attempt to fix the BSD RAW-CHKPATH failures: In Samba3 we rely on opendir returning ENOTDIR when the file opened is not a directory. Can we merge this back into Samba4? Volker Modified: branches/SAMBA_3_0/source/lib/replace/repdir_getdents.c branches/SAMBA_3_0/source/lib/replace/repdir_getdirentries.c Changeset: Modified: branches/SAMBA_3_0/source/lib/replace/repdir_getdents.c === --- branches/SAMBA_3_0/source/lib/replace/repdir_getdents.c 2006-09-30 09:45:53 UTC (rev 19010) +++ branches/SAMBA_3_0/source/lib/replace/repdir_getdents.c 2006-09-30 14:12:02 UTC (rev 19011) @@ -68,6 +68,7 @@ DIR *opendir(const char *dname) { struct dir_buf *d; + struct stat sb; d = malloc(sizeof(*d)); if (d == NULL) { errno = ENOMEM; @@ -78,6 +79,17 @@ free(d); return NULL; } + if (fstat(d-fd, sb) 0) { +close(d-fd); +free(d); +return NULL; +} +if (!S_ISDIR(sb.st_mode)) { +close(d-fd); +free(d); +errno = ENOTDIR; +return NULL; +} d-ofs = 0; d-seekpos = 0; d-nbytes = 0; Modified: branches/SAMBA_3_0/source/lib/replace/repdir_getdirentries.c === --- branches/SAMBA_3_0/source/lib/replace/repdir_getdirentries.c 2006-09-30 09:45:53 UTC (rev 19010) +++ branches/SAMBA_3_0/source/lib/replace/repdir_getdirentries.c 2006-09-30 14:12:02 UTC (rev 19011) @@ -70,6 +70,7 @@ DIR *opendir(const char *dname) { struct dir_buf *d; + struct stat sb; d = malloc(sizeof(*d)); if (d == NULL) { errno = ENOMEM; @@ -80,6 +81,17 @@ free(d); return NULL; } + if (fstat(d-fd, sb) 0) { +close(d-fd); +free(d); +return NULL; +} +if (!S_ISDIR(sb.st_mode)) { +close(d-fd); +free(d); +errno = ENOTDIR; +return NULL; +} d-ofs = 0; d-seekpos = 0; d-nbytes = 0;
svn commit: samba-docs r988 - in trunk/Samba3-HOWTO: .
Author: jht Date: 2006-09-30 16:58:18 + (Sat, 30 Sep 2006) New Revision: 988 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=988 Log: Adding samba user comments and feedback. Modified: trunk/Samba3-HOWTO/TOSHARG-NetworkBrowsing.xml Changeset: Modified: trunk/Samba3-HOWTO/TOSHARG-NetworkBrowsing.xml === --- trunk/Samba3-HOWTO/TOSHARG-NetworkBrowsing.xml 2006-09-13 17:08:53 UTC (rev 987) +++ trunk/Samba3-HOWTO/TOSHARG-NetworkBrowsing.xml 2006-09-30 16:58:18 UTC (rev 988) @@ -4,8 +4,15 @@ chapterinfo author.jht; author.jelmer; + author + firstnameJonathan/firstnamesurnameJohnson/surname + affiliation + orgnameSutinen Consulting, Inc./orgname +addressemail[EMAIL PROTECTED]/email/address + /affiliation + /author pubdateJuly 5, 1998/pubdate - pubdateUpdated: April 21, 2003/pubdate + pubdateUpdated: September 20, 2006/pubdate /chapterinfo titleNetwork Browsing/title @@ -14,6 +21,7 @@ indextermprimarybrowsing across subnets/primary/indexterm indextermprimaryresolution of NetBIOS names/primary/indexterm indextermprimarybrowse list handling/primary/indexterm +indextermprimaryWINS/primary/indexterm This chapter contains detailed information as well as a fast-track guide to implementing browsing across subnets and/or across workgroups (or domains). WINS is the best tool for resolution of NetBIOS names to IP addresses; however, WINS is @@ -21,6 +29,15 @@ /para notepara +indextermprimaryWINS/primary/indexterm +What is WINS? +/para +para +WINS is a facility that provides resolution of a NetBIOS name to its IP address. WINS is like a +Dynamic-DNS service for NetBIOS networking names. +/para/note + +notepara indextermprimaryWindows 2000/primary/indexterm indextermprimaryNetBIOS over TCP/IP/primary/indexterm indextermprimaryDNS/primary/indexterm @@ -2168,5 +2185,41 @@ /variablelist /sect2 +sect2 +titleInvalid Cached Share References Affects Network Browsing/title +para +Cached references on your MS Windows client (workstation or server) to shares or servers that no longer exist +can cause MS Windows Explorer to appear unresponsive as it tries to connect to these shares. After a delay +(can take a long time) it times out and browsing will appear to be mostly normal again. +/para + +para +To eliminate the problem the stale cached references should be removed. This does not happen automatically and +requires manual intervention. This is a design feature of MS Windows and not anything that Samba can change. +To remove the stale shortcuts found in emphasisMy Network Places/emphasis which refer to what are now +invalid shares or servers it is necessary to edit the Windows Registry under +literalHKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\/literal. Edit the entry +literalMountPoints2/literal (on Windows XP and later, or literalMountPoints/literal on +Windows 2000 and earlier). Remove all keys named literal\\server\share/literal (where 'server' and 'share' refer to a +non-existent server or share). Note that this must be done for every user profile that has such stale +references. +/para + +para +Samba users have reported that these stale references negatively affect network browsing with Windows, Samba, +and Novell servers. They suspect it is a universal problem not directly related to the existence of a Samba +server. Samba users may experience this more often due to Samba being somewhat viewed as an experimenter's +toolkit. This results from the fact that a user might go through several reconfigurations and incarnations of +their Samba server, by different names, with different shares, increasing the chances for having stale +(invalid) cached share references. Strangely (or not so strangely), Windows does not seem to expire these +references. I am not sure how or why the registry keys are created. +/para + +para +It is common for emphasisOpen/emphasis dialog boxes (for example; in Word and Excel) to respond very +slowly, as they attempt to locate all of the cached references, even if they are not in the current directory +being accessed. +/para +/sect2 /sect1 /chapter
svn commit: samba r19012 - in branches/SAMBA_3_0/source/libgpo: .
Author: vlendec Date: 2006-09-30 17:20:02 + (Sat, 30 Sep 2006) New Revision: 19012 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=19012 Log: Fix an uninitialized variable Modified: branches/SAMBA_3_0/source/libgpo/gpo_filesync.c Changeset: Modified: branches/SAMBA_3_0/source/libgpo/gpo_filesync.c === --- branches/SAMBA_3_0/source/libgpo/gpo_filesync.c 2006-09-30 14:12:02 UTC (rev 19011) +++ branches/SAMBA_3_0/source/libgpo/gpo_filesync.c 2006-09-30 17:20:02 UTC (rev 19012) @@ -40,7 +40,8 @@ const char *unix_path) { NTSTATUS result; - int fnum, fd; + int fnum; + int fd = 0; char *data = NULL; static int io_bufsize = 64512; int read_size = io_bufsize;
svn commit: samba r19013 - in branches/SAMBA_3_0/source/rpcclient: .
Author: vlendec Date: 2006-09-30 17:32:26 + (Sat, 30 Sep 2006) New Revision: 19013 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=19013 Log: Fix some 64-bit warnings. Jelmer, Jerry, in cmd_unixinfo.c:159 there is still the warning that info is being used uninitialized which I don't really know how to fix. Any hints? Volker Modified: branches/SAMBA_3_0/source/rpcclient/cmd_lsarpc.c branches/SAMBA_3_0/source/rpcclient/cmd_samr.c branches/SAMBA_3_0/source/rpcclient/cmd_unixinfo.c Changeset: Modified: branches/SAMBA_3_0/source/rpcclient/cmd_lsarpc.c === --- branches/SAMBA_3_0/source/rpcclient/cmd_lsarpc.c2006-09-30 17:20:02 UTC (rev 19012) +++ branches/SAMBA_3_0/source/rpcclient/cmd_lsarpc.c2006-09-30 17:32:26 UTC (rev 19013) @@ -63,9 +63,9 @@ { d_printf(percent_full:\t%d\n, d.percent_full); d_printf(log_size:\t%d\n, d.log_size); - d_printf(retention_time:\t%lld\n, d.retention_time); + d_printf(retention_time:\t%lld\n, (long long)d.retention_time); d_printf(shutdown_in_progress:\t%d\n, d.shutdown_in_progress); - d_printf(time_to_shutdown:\t%lld\n, d.time_to_shutdown); + d_printf(time_to_shutdown:\t%lld\n, (long long)d.time_to_shutdown); d_printf(next_audit_record:\t%d\n, d.next_audit_record); d_printf(unknown:\t%d\n, d.unknown); } Modified: branches/SAMBA_3_0/source/rpcclient/cmd_samr.c === --- branches/SAMBA_3_0/source/rpcclient/cmd_samr.c 2006-09-30 17:20:02 UTC (rev 19012) +++ branches/SAMBA_3_0/source/rpcclient/cmd_samr.c 2006-09-30 17:32:26 UTC (rev 19013) @@ -165,7 +165,7 @@ printf(Total Groups:\t%d\n, info2-num_domain_grps); printf(Total Aliases:\t%d\n, info2-num_local_grps); - printf(Sequence No:\t%lld\n, info2-seq_num); + printf(Sequence No:\t%llu\n, (unsigned long long)info2-seq_num); printf(Force Logoff:\t%d\n, (int)nt_time_to_unix_abs(info2-logout)); @@ -210,7 +210,7 @@ static void display_sam_unk_info_8(SAM_UNK_INFO_8 *info8) { - printf(Sequence No:\t%lld\n, info8-seq_num); + printf(Sequence No:\t%llu\n, (unsigned long long)info8-seq_num); printf(Domain Create Time:\t%s\n, http_timestring(nt_time_to_unix(info8-domain_create_time))); } @@ -229,7 +229,7 @@ static void display_sam_unk_info_13(SAM_UNK_INFO_13 *info13) { - printf(Sequence No:\t%lld\n, info13-seq_num); + printf(Sequence No:\t%llu\n, (unsigned long long)info13-seq_num); printf(Domain Create Time:\t%s\n, http_timestring(nt_time_to_unix(info13-domain_create_time))); printf(Unknown1:\t%d\n, info13-unknown1); Modified: branches/SAMBA_3_0/source/rpcclient/cmd_unixinfo.c === --- branches/SAMBA_3_0/source/rpcclient/cmd_unixinfo.c 2006-09-30 17:20:02 UTC (rev 19012) +++ branches/SAMBA_3_0/source/rpcclient/cmd_unixinfo.c 2006-09-30 17:32:26 UTC (rev 19013) @@ -70,7 +70,7 @@ if (!NT_STATUS_IS_OK(result)) goto done; - printf(%llu\n, uid); + printf(%llu\n, (unsigned long long)uid); done: return result; @@ -125,7 +125,7 @@ if (!NT_STATUS_IS_OK(result)) goto done; - printf(%llu\n, gid); + printf(%llu\n, (unsigned long long)gid); done: return result; @@ -164,10 +164,11 @@ for (i=0; inum_uids; i++) { if (NT_STATUS_IS_OK(info[i].status)) { - printf(%llu:%s:%s\n, uids[i], info[i].homedir, - info[i].shell); + printf(%llu:%s:%s\n, (unsigned long long)uids[i], + info[i].homedir, info[i].shell); } else { - printf(%llu:%s\n, uids[i], nt_errstr(info[i].status)); + printf(%llu:%s\n, (unsigned long long)uids[i], + nt_errstr(info[i].status)); } }
svn commit: samba r19014 - in branches/SAMBA_3_0_23/source/smbd: .
Author: vlendec Date: 2006-09-30 21:30:24 + (Sat, 30 Sep 2006) New Revision: 19014 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=19014 Log: By request of Tom Bork, merge r19010 from 3_0 Modified: branches/SAMBA_3_0_23/source/smbd/share_access.c Changeset: Modified: branches/SAMBA_3_0_23/source/smbd/share_access.c === --- branches/SAMBA_3_0_23/source/smbd/share_access.c2006-09-30 17:32:26 UTC (rev 19013) +++ branches/SAMBA_3_0_23/source/smbd/share_access.c2006-09-30 21:30:24 UTC (rev 19014) @@ -214,6 +214,10 @@ const char *list[2]; list[0] = lp_username(snum); list[1] = NULL; + if ((list[0] == NULL) || (*list[0] == '\0')) { + DEBUG(0, ('only user = yes' and no 'username ='\n)); + return False; + } if (!token_contains_name_in_list(NULL, lp_servicename(snum), token, list)) { DEBUG(10, (%s != 'username'\n, username));
Build status as of Sun Oct 1 00:00:02 2006
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2006-09-30 00:00:10.0 + +++ /home/build/master/cache/broken_results.txt 2006-10-01 00:01:04.0 + @@ -1,21 +1,21 @@ -Build status as of Sat Sep 30 00:00:01 2006 +Build status as of Sun Oct 1 00:00:02 2006 Build counts: Tree Total Broken Panic SOC 0 0 0 build_farm 0 0 0 -ccache 39 8 0 -distcc 39 6 0 -ldb 36 5 0 -libreplace 37 1 0 -lorikeet-heimdal 3 2 0 +ccache 38 7 0 +distcc 38 7 0 +ldb 35 5 0 +libreplace 37 2 0 +lorikeet-heimdal 2 2 0 ppp 17 0 0 -rsync39 10 0 +rsync38 11 0 samba0 0 0 samba-docs 0 0 0 -samba4 39 9 1 -samba_3_039 16 1 +samba4 36 9 1 +samba_3_038 11 1 smb-build31 3 0 -talloc 40 4 0 +talloc 40 5 0 tdb 38 2 0
svn commit: linux-cifs-client r86 - in branches/linux-2.6-cifs-git-devel/fs/cifs: .
Author: sfrench Date: 2006-10-01 02:42:30 + (Sun, 01 Oct 2006) New Revision: 86 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=linux-cifs-clientrev=86 Log: Missing file Added: branches/linux-2.6-cifs-git-devel/fs/cifs/sess.c Changeset: Sorry, the patch is too large (544 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=linux-cifs-clientrev=86