Alexander Bokovoy
e278e2e6e0
r516: On GNU/Linux distributions which allow to use both 2.4 and 2.6 kernels
...
there is SYS_utimes syscall defined at compile time in glibc-kernheaders but
it is available on 2.6 kernels only. Therefore, we can't rely on syscall at
compile time but have to check that behaviour during program execution. An easy
workaround is to have replacement for utimes() implemented within our wrapper and
do not rely on syscall at all. Thus, if REPLACE_UTIME is defined already (by packager),
skip these syscall shortcuts.
2007-10-10 10:51:26 -05:00
Gerald Carter
a7e2730ec4
r39: * importing .cvsignore files
...
* updateing WHATSNEW with vl's change
2007-10-10 10:51:05 -05:00
Volker Lendecke
d74137d227
Collecting another little patch from gd@suse.de
...
As broken as it might be, smbwrapper.so should be put into the
libdir and not bindir.
Volker
0001-01-01 00:00:00 +00:00
Tim Potter
08aa3f712c
Whoops - missed a place where HAVE_STAT_ST_{BLOCKS,BLOCKSIZE} guards
...
should be present.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d7e35dfb92
Put strcasecmp/strncasecmp on the banned list (except for needed calls
...
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at
all and I really want to discourage that.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
18adfdbe0c
Enclose usage of st_blksize and st_blocks struct stat members in
...
#ifdef HAVE_STAT_ST_BLKSIZE and #ifdef HAVE_STAT_ST_BLOCKS,
respectively.
Fixes bug 550 reported by Joachim Schmitz <schmitz@hp.com>.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
ab631b31fb
Patch from Guenther Deschner to fix build with gcc 3.2
0001-01-01 00:00:00 +00:00
Andrew Bartlett
5ec7804212
Parinoia for compleatly broken SMB servers that don't send back the right
...
fstype for IPC$ - assume the device type is IPC.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
39fb77d8c1
Make this safe for -DDEVELOPER checks.
...
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Tim Potter
1fb5c92bfb
Fix building --with-smbwrapper.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
e9d6e2ea9a
Merge minor library fixes from HEAD to 3.0.
...
- setenv() replacement
- mimir's ASN1/SPNEGO typo fixes
- (size_t)-1 fixes for push_* returns
- function argument signed/unsigned correction
- ASN1 error handling (ensure we don't use initiailsed data)
- extra net ads join error checking
- allow 'set security discriptor' to fail
- escape ldap strings in libads.
- getgrouplist() correctness fixes (include primary gid)
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
fcbf865162
Fix smbwrapper from global* changes.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
6a58c9bd06
Removed version number from file header.
...
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
0001-01-01 00:00:00 +00:00
Tim Potter
78013c0ecc
Unused file.
0001-01-01 00:00:00 +00:00
Tim Potter
778f5f77a6
Got medieval on another pointless extern. Removed extern struct ipzero
...
and replaced with two functions:
void zero_ip(struct in_adder *ip);
BOOL is_zero_ip(struct in_addr ip);
0001-01-01 00:00:00 +00:00
Jeremy Allison
54c968913d
W2K doesn't seem to respond to *#0 names in node status. Ensure name
...
lookup uses password server parameter when looking for PDCs.
Jeremy.
0001-01-01 00:00:00 +00:00
Martin Pool
79ec88f0da
Store some path names in global variables initialized to configure
...
default, rather than in preprocessor macros.
0001-01-01 00:00:00 +00:00
Tim Potter
234943c066
charset_initialise() doesn't exist anymore.
...
Why don't we build smbwrapper on a build farm machine to spot this sort of
thing earlier?
0001-01-01 00:00:00 +00:00
Simo Sorce
39409a20f6
remove unused function in mangle.c
...
fix some alloc leaks spotted by andreas moroder.
0001-01-01 00:00:00 +00:00
Tim Potter
2d0922b0ea
Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
0001-01-01 00:00:00 +00:00
Simo Sorce
a95943fde0
move to SAFE_FREE()
0001-01-01 00:00:00 +00:00
Andrew Tridgell
d1e9fb7778
fixed compilation error in smbw
0001-01-01 00:00:00 +00:00
Gerald Carter
0e4d2384de
merge from 2.2
0001-01-01 00:00:00 +00:00
Andrew Tridgell
fe6679dffb
convert more code to use XFILE
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f41c3bb80f
declare dbf in one spot
0001-01-01 00:00:00 +00:00
Andrew Tridgell
1af8bf34f1
replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
...
replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor
limit that we hit with nasty consequences on some systems
I would eventually prefer us to have a configure test to see if we need
to replace stdio, but for now this code needs to be tested widely so
I'm enabling it by default.
0001-01-01 00:00:00 +00:00
Simo Sorce
c53c5eca15
compile fix
0001-01-01 00:00:00 +00:00
Simo Sorce
fa8e55b8b4
this is a big global fix for the ptr = Realloc(ptr, size) bug.
...
many possible mem leaks, and segfaults fixed.
someone should port this fix to 2.2 also.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c41fc06376
strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
debb471267
The big character set handling changeover!
...
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
0001-01-01 00:00:00 +00:00
Tim Potter
11a7c5e3d6
Grr - fixed compile error in smbwrapper stuff.
0001-01-01 00:00:00 +00:00
Tim Potter
1e38eef54d
Added a caching system to smbsh. Previously access to workgroup or server
...
directories under /smb generated net share enum or net server enum calls.
For large networks this could result in bad performance. We now cache these
results and only call net * enums after the cache timeout has exceeded.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9b32b8a8cf
To stop people complaining about the mktemp call, move it into lib/util.c. Thanks
...
to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke
XFS ACL code.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
33aefc76e8
setup workgroup when found
0001-01-01 00:00:00 +00:00
Tim Potter
24c78fdf5f
Fix for no master browser present.
0001-01-01 00:00:00 +00:00
Tim Potter
d7920a670b
Compile fix for smbw_dir_add function.
0001-01-01 00:00:00 +00:00
Richard Sharpe
d45e667a74
Needed a callback arg on cli_list ...
0001-01-01 00:00:00 +00:00
Tim Potter
d006e6adca
Added extra argument to calls to smbw_share_add()
0001-01-01 00:00:00 +00:00
Richard Sharpe
7f862e387f
I need a callback arg for cli_NetServerEnum and cli_RNetShareEnum, so I had
...
to modifiy any routine that calls it to pass NULL and so forth.
Should have no impact. It compiles OK.
0001-01-01 00:00:00 +00:00
Tim Potter
9255e52624
Return an empty directory for a stat on a share we aren't allowed to
...
connect to. This gives a permission denied when a cd is attempted, but
not a permission denied in the directory listing one level up.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f2be88a873
implemented a much nicer name_status() interface. It now returns a
...
list of structures rather than the dodgy parsing code we had before
this also gets smbw working correctly with no initial workgroup (using
name_status_find on __MSBROWSE__ returns)
0001-01-01 00:00:00 +00:00
Tim Potter
4d80ee4f41
Added support for SERVICESF shared variable to change configuration file
...
used in lp_load().
0001-01-01 00:00:00 +00:00
Andrew Tridgell
8f97d59186
added support for browsing the list of workgroups at the top level in
...
smbw
0001-01-01 00:00:00 +00:00
Tim Potter
600eb0eb00
Fetch authentication info before actually using it.
0001-01-01 00:00:00 +00:00
Tim Potter
644c78d64a
Added a authentication hook to smbwrapper which allows a (username,
...
workgroup, password) tuple to be provided by another function.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ae80ca637c
added -L option
0001-01-01 00:00:00 +00:00
Andrew Tridgell
614fd4119c
got smbw to compile again on Linux
0001-01-01 00:00:00 +00:00
Herb Lewis
d97f5d57d0
removed extra arguements from make_nmb_name calls
0001-01-01 00:00:00 +00:00
Andrew Tridgell
453a822a76
first pass at updating head branch to be to be the same as the SAMBA_2_0 branch
0001-01-01 00:00:00 +00:00
Tim Potter
d78224a7d2
Return a (void *)0 instead of NULL in readdir64() wrapper.
0001-01-01 00:00:00 +00:00