1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/source/lib
Andrew Bartlett e7634f81c5 This commit is number 3 of 4.
In particular this commit focuses on:

Changing the Get_Pwnam code so that it can work in a const-enforced
environment.

While these changes have been mildly tested, and are pretty small, any
assistance in this is appreciated.

----

These changes allow for 'const' in the Samba tree.

There are a number of good reasons to do this:

	- I want to allow the SAM_ACCOUNT structure to move from wasteful
	pstrings and fstrings to  allocated strings.  We can't do that if
	people are modifying these outputs, as they may well make
	assumptions about getting pstrings and fstrings

	- I want --with-pam_smbpass to compile with a slightly sane
	volume of warnings, currently its  pretty bad, even in 2.2
	where is compiles at all.

	- Tridge assures me that he no longer opposes 'const religion'
	based on the ability to  #define const the problem away.

	- Changed Get_Pwnam(x,y) into two variants (so that the const
	parameter can work correctly): - Get_Pwnam(const x) and
	Get_Pwnam_Modify(x).

	- Reworked smbd/chgpasswd.c to work with these mods, passing
	around a 'struct passwd' rather  than the modified username
0001-01-01 00:00:00 +00:00
..
.cvsignore - fixed cast warnings 0001-01-01 00:00:00 +00:00
access.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
bitmap.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
charcnv.c get rid of compiler warnings (casts and delete unused variables) 0001-01-01 00:00:00 +00:00
crc32.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
debug.c smbd/notify_hash.c: Merged Herb's fix. 0001-01-01 00:00:00 +00:00
domain_namemap.c Unicode conversion fix in Japanese environment from Motonobu TAKAHASHI. 0001-01-01 00:00:00 +00:00
dprintf.c first step in converting the head branch to use lang_tdb.c instead 0001-01-01 00:00:00 +00:00
error.c the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work 0001-01-01 00:00:00 +00:00
fault.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
fsusage.c split fsusage() into a separate module (to fix linking problems with 0001-01-01 00:00:00 +00:00
genrand.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
getsmbpass.c Small tidyups for gcc in 'preen' mode.... 0001-01-01 00:00:00 +00:00
hash.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
hmacmd5.c Add backend encryption support for NTLMv2. 0001-01-01 00:00:00 +00:00
iconv.c get rid of compiler warnings (casts and delete unused variables) 0001-01-01 00:00:00 +00:00
interface.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
interfaces.c fix interfaces.c for aix 3.2.5 0001-01-01 00:00:00 +00:00
md4.c Add backend encryption support for NTLMv2. 0001-01-01 00:00:00 +00:00
md5.c Add backend encryption support for NTLMv2. 0001-01-01 00:00:00 +00:00
messages.c Fixed enumeration of large numbers of groups from a Samba DC. 0001-01-01 00:00:00 +00:00
ms_fnmatch.c a bunch of fixes from the sflight to seattle 0001-01-01 00:00:00 +00:00
netatalk.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
pidfile.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
readline.c initial support to error report in smbclient, useful when using smbclient -c in scripts. 0001-01-01 00:00:00 +00:00
replace.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
select.c Always increment even if the read fails (otherwise we spin if we hit the kernel bug...). 0001-01-01 00:00:00 +00:00
signal.c fixed a bug in BlockSignals() for systems that don't have 0001-01-01 00:00:00 +00:00
smbpasswd.c Started a cleanup of smbpasswd related stuff. I've created a new file 0001-01-01 00:00:00 +00:00
smbrun.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
snprintf.c Added || -> && fix from "Orwig, Paul" <PORWIG@PacificLife.com>. 0001-01-01 00:00:00 +00:00
substitute.c This commit is number 3 of 4. 0001-01-01 00:00:00 +00:00
sysacls.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
system.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
talloc.c return of vsnprintf doesn't include termination 0001-01-01 00:00:00 +00:00
time.c Fixed the bug with member servers in a Samba PDC hosted domain not allowing 0001-01-01 00:00:00 +00:00
ufc.c Fixed warnings and made const-safe so it has the correct prototype. 0001-01-01 00:00:00 +00:00
username.c This commit is number 3 of 4. 0001-01-01 00:00:00 +00:00
util_array.c move to SAFE_FREE() 0001-01-01 00:00:00 +00:00
util_file.c initial kerberos/ADS/SPNEGO support in libsmb and smbclient. To 0001-01-01 00:00:00 +00:00
util_getent.c move to SAFE_FREE() 0001-01-01 00:00:00 +00:00
util_list.c A few spelling fixes from Vance. <vance@digital-host.net> 0001-01-01 00:00:00 +00:00
util_seaccess.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
util_sec.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
util_sid.c Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
util_sock.c Removed unused function. 0001-01-01 00:00:00 +00:00
util_str.c switched over to a new method of handling uppercase/lowercase mappings 0001-01-01 00:00:00 +00:00
util_unistr.c old fixes I forgot to commit 0001-01-01 00:00:00 +00:00
util.c a quick fix to get rpcclient working again. This just disables 0001-01-01 00:00:00 +00:00
wins_srv.c move to SAFE_FREE() 0001-01-01 00:00:00 +00:00
xfile.c move to SAFE_FREE() 0001-01-01 00:00:00 +00:00