head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.6 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.4 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.2 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.2.0.46 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.44 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.42 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.40 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.38 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.36 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.34 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.32 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.30 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.28 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.26 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.24 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.22 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.20 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.18 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.16 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.14 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.12 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.10 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.8 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.6 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.4 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.2 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.1.0.4 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.2 netbsd-1-6-1-base:1.1; locks; strict; comment @# @; 1.4 date 2011.12.16.22.32.06; author asau; state dead; branches; next 1.3; 1.3 date 2011.12.16.11.05.24; author asau; state Exp; branches; next 1.2; 1.2 date 2004.01.11.02.26.31; author jlam; state dead; branches; next 1.1; 1.1 date 2002.10.14.01.51.27; author kim; state Exp; branches; next ; desc @@ 1.4 log @Update to Samba 3.6.1 Major enhancements in Samba 3.6.1 include: o Fix smbd crashes triggered by Windows XP clients (bug #8384). o Fix a Winbind race leading to 100% CPU load (bug #8409). o Several SMB2 fixes. o The VFS ACL modules are no longer experimental but production-ready. Full release notes at http://www.samba.org/samba/history/samba-3.6.1.html Major enhancements in Samba 3.6.0 include: - Changed security defaults: client ntlmv2 auth = yes client use spnego principal = no send spnego principal = no - SMB2 support (fully functional with one omission) - Internal Winbind passdb changes - New Spoolss code - ID Mapping Changes - Endpoint Mapper - Internal restructuring - SMB Traffic Analyzer (http://holger123.wordpress.com/smb-traffic-analyzer/) - NFS quota backend on Linux Full release notes at http://www.samba.org/samba/history/samba-3.6.0.html @ text @$NetBSD: patch-ap,v 1.3 2011/12/16 11:05:24 asau Exp $ --- nmbd/nmbd.c.orig 2010-10-07 16:41:16.000000000 +0000 +++ nmbd/nmbd.c @@@@ -916,6 +916,10 @@@@ static bool open_sockets(bool isdaemon, mkdir(lp_lockdir(), 0755); } + if (!directory_exist(lp_statedir())) { + mkdir(lp_statedir(), 0755); + } + pidfile_create("nmbd"); if (!NT_STATUS_IS_OK(reinit_after_fork(nmbd_messaging_context(), @ 1.3 log @Update to Samba 3.5.11 from net/samba35, part of Samba packages rearrangement. @ text @d1 1 a1 1 $NetBSD: patch-ap,v 1.1.1.1 2010/12/06 17:01:23 adam Exp $ @ 1.2 log @Update net/samba to 3.0.1. Major changes from version 2.2.8anb6 include: * Active Directory support. Samba is able to join a ADS realm as a member server and authenticate using LDAP/Kerberos. * Unicode support. * New, more flexible authentication (passdb) system. * A new "net" command that is similar to the "net" command in Windows. * Samba now negotiates NT-style status32 codes on the wire, which greatly improves error handling. * Better Windows 2K/2K3/XP printing support. * Loadable module support for passdb backends and character sets. * More performant winbindd. * Support for migrating from a Windows NT4 domain to a Samba domain and maintaining user, group, and domain SIDs. * Support for establishing trust relationships with Windows NT4 DCs. * Initial support for a distributed Winbind architecture using an LDAP directory for storing SID-to-uid/gid mappings. * Major updates to the Samba documentation tree. * Full support for client and server SMB signing to ensure compatibility with default Windows 2K3 security settings. * Improvement of ACL mapping features. @ text @d1 1 a1 1 $NetBSD: patch-ap,v 1.1 2002/10/14 01:51:27 kim Exp $ d3 9 a11 25 Expand & in the gecos field to a capitalized login name. --- lib/util_getent.c.orig Sat Feb 2 19:46:42 2002 +++ lib/util_getent.c Sun Oct 13 21:37:56 2002 @@@@ -155,6 +155,11 @@@@ struct sys_pwent *plist; struct sys_pwent *pent; struct passwd *pwd; +#ifdef BSD +# define BUFLEN 1024 + char *bp, *gecos, *p, buf[BUFLEN]; + int buflen; +#endif pent = (struct sys_pwent *) malloc(sizeof(struct sys_pwent)); if (pent == NULL) { @@@@ -178,9 +183,38 @@@@ pent->pw_uid = pwd->pw_uid; pent->pw_gid = pwd->pw_gid; if (pwd->pw_gecos) { +#ifdef BSD + gecos = pwd->pw_gecos; + if (*gecos == '*') + gecos++; + bp = buf; d13 3 a15 29 + /* copy gecos, interpolating & to be full name */ + for (p = gecos; *p != '\0'; p++) { + if (bp >= &buf[BUFLEN - 1]) + /* buffer overflow */ + goto gecos_done; + if (*p == '&') { + /* interpolate full name */ + snprintf(bp, BUFLEN - (bp - buf), + "%s", pwd->pw_name); + *bp = toupper(*bp); + bp += strlen(bp); + } + else + *bp++ = *p; + } + *bp = '\0'; + if ((pent->pw_name = strdup(buf)) == NULL) + goto err; +#else if ((pent->pw_name = strdup(pwd->pw_gecos)) == NULL) goto err; +#endif } +#ifdef BSD + gecos_done: +#endif if (pwd->pw_dir) { if ((pent->pw_name = strdup(pwd->pw_dir)) == NULL) goto err; @ 1.1 log @Expand & in the gecos field to a capitalized login name. @ text @d1 1 a1 1 $NetBSD$ @