1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

414 Commits

Author SHA1 Message Date
Richard Sharpe
3d0d8f609d Fix an spelling mistake.
(This used to be commit 8e37c1d579ed801fd602d698174f981deff435d9)
2003-06-13 17:49:03 +00:00
Andrew Tridgell
53f8d3f01a SMBlockingX timeouts are in units of 2 milliseconds, not 1
(This used to be commit 999cde3227210c90132ade3812e964087f04e541)
2003-06-06 10:42:16 +00:00
Andrew Tridgell
e35917bb93 make the allocation_size consistent between trans2 QFILEINFO and SMBgetattrE
(This used to be commit 59f1a5e6fd783b977f787dae4ba4bb8b65c41e43)
2003-06-06 05:32:36 +00:00
Alexander Bokovoy
bc2a3748e9 Prefix VFS API macros with SMB_ for consistency and to avoid problems with VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out
(This used to be commit c2689ed118b490e49497a76ed6a2251262018769)
2003-05-14 10:59:01 +00:00
Alexander Bokovoy
e7c8c15888 Fix VFS layer:
1. Finally work with cascaded modules with private data storage per module
2. Convert VFS API to macro calls to simplify cascading
3. Add quota support to VFS layer (prepare to NT quota support)

Patch by Stefan (metze) Metzemacher, with review of Jelmer and me
Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
(This used to be commit 91984ef5caa2d13c5d52e1f535bd3bbbae1ec978)
2003-05-11 23:34:18 +00:00
Andrew Bartlett
2a3a9f0bf4 Merge the 'safe' parts of my StrnCpy patch - many of the users really wanted
a pstrcpy/fstrcpy or at most a safe_strcpy().

These have the advantage of being compiler-verifiable.

Get these out of the way, along with a rewrite of 'get_short_archi' in the
spoolss client and server.  (This pushes around const string pointers, rather
than copied strings).

Andrew Bartlett
(This used to be commit 32fb801ddc035e8971e9911ed4b6e51892e9d1cc)
2003-04-23 13:27:35 +00:00
Andrew Bartlett
be86f6555a Make the variable name match the comment.
Andrew Bartlett
(This used to be commit 5a577f8cafa7375bd8485763f163de939ddc4a39)
2003-04-23 11:11:02 +00:00
Tim Potter
c8cc8bb60c Merge of Simo's strncat -> StrnCpy fix.
(This used to be commit a2b1a7533ed997848f9dc0fcd1ffc3d4b4e8117d)
2003-04-13 23:45:35 +00:00
Gerald Carter
e1ea87ff03 * We must return 0x2 as the majorversion for nt4 to upload drivers
* fix bug found by clobber_region()
(This used to be commit b2e29c7bd45f8f33d9ed58fe75bbf5ffc78350f5)
2003-04-11 23:48:24 +00:00
Gerald Carter
14e03aed29 cleanup lanman printing= for win98; device type is LPT1:; patch by Steve L.
(This used to be commit 36d62e5667f3b9e39362fb3907bf69697fca3ea6)
2003-04-11 23:28:15 +00:00
Jeremy Allison
045db5d045 Ensure we have WinXP-like semantics for checking TIDs and FIDs.
Jeremy.
(This used to be commit 52e44dde4ef9717eae7cf454f56d309fdd4b7d1f)
2003-04-09 22:31:37 +00:00
Gerald Carter
9676bf7e5c cleanup the IPC/LPT:/A: mess I started
(This used to be commit e6034a03d543d8672303f2b24982cfc03b124391)
2003-03-27 22:27:53 +00:00
Jeremy Allison
fa4b83ce92 Fix DOS del command with widelinks = False.
Jeremy.
(This used to be commit ef1782121bc4ebcdd2731fd6863209352f815dbe)
2003-03-26 22:15:21 +00:00
Gerald Carter
8460dc4340 win9x was suffered a case of the blues during a domain logon.
For some reason, explicitly setting the service type during the
tcon&X fixes this.
(This used to be commit 4dd81caeff96d2b7f08b4846a524f917a85407a4)
2003-03-25 04:14:54 +00:00
Volker Lendecke
70788c30fb Merge from HEAD
(This used to be commit d59a7bea6b22a4c3e6cacd1a4c5ee95f42b13a26)
2003-03-20 18:13:27 +00:00
Andrew Bartlett
d5ee9b2f48 Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)
This patch catches up on the rest of the work - as much string checking
as is possible is done at compile time, and the rest at runtime.

Lots of code converted to pstrcpy() etc, and other code reworked to correctly
call sizeof().

Andrew Bartlett
(This used to be commit c5b604e2ee67d74241ae2fa07ae904647d35a2be)
2003-03-18 11:22:52 +00:00
Andrew Bartlett
cdc6fc8acb Add an extra parameter to our 'set_remote_machine_name' and
'set_local_machine_name' so that the client can't change it from under us.

(.NET RC2 and WinXP install calls the machine 'machinename' during NTLMSSP
on the domain join).

Andrew Bartlett
(This used to be commit 4c7163e7c2cc09bd95faa05156ee480957a7a4d8)
2003-03-18 09:52:55 +00:00
Andrew Bartlett
ad0d6509a7 Merge from HEAD:
- Make ReadDirName return a const char*.

 - Consequential changes from that

 - mark our fstring/pstring assumptions in function prototypes

Andrew Bartlett
(This used to be commit 10b53d7c6fd77f23433dd2ef12bb14b227147a48)
2003-03-17 22:56:13 +00:00
Jeremy Allison
fb3e4b8797 Fix to allow blocking lock notification to be done rapidly (no wait
for smb -> smb lock release). Adds new PENDING_LOCK type to lockdb
(does not interfere with existing locks).
Jeremy.
(This used to be commit 766928bbba1e597c9c2b12458dd8d37e6080593e)
2003-02-27 01:04:34 +00:00
Andrew Bartlett
27b7e51a3c Merge from HEAD:
- fstring/pstring mixups
 - the detection code that found them (disabled)
 - a bit of whitespace
 - a static

Andrew Bartlett
(This used to be commit 9b70fa868e7d9481f584c83fc4046174e1dedfd9)
2003-01-14 08:53:59 +00:00
Jeremy Allison
a2cce2f075 Ensure we return disk full by default on short writes.
Jeremy.
(This used to be commit 2a974bc284b9d193c24972d073b966eb9b3b3ad0)
2003-01-08 23:49:21 +00:00
Andrew Bartlett
634c54310c Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
(This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
2003-01-03 08:28:12 +00:00
Simo Sorce
0747016dfc from HEAD:
fix for bad check spotted by Ray Simard <ray@sylvan-glade.com>
(This used to be commit bcc633c4097661447731bda24a38be62c69bbed5)
2002-12-31 10:25:11 +00:00
Jeremy Allison
ce2b200add Fix for old DOS client when veto files is set to /.*/
Jeremy.
(This used to be commit 8e9f3b1574cd51d6b9880d9c8a676e695cd86062)
2002-12-13 19:07:37 +00:00
Jeremy Allison
00a20ce45f The element in fsp->print_job should be a RAP jobid, not a uint32 RPC
jobid. This was causing Win9x client "set name" calls to fail.
Still need one cleanup fix to finish.
Jeremy.
(This used to be commit 6c23d2030ab8dddff4c849903c529f0012b94027)
2002-12-05 04:00:16 +00:00
Jeremy Allison
d4103a0991 Added Volker's directory fix - save the attributes
from the first call.
Jeremy.
(This used to be commit b60a441b91dccdeadc125476ac3306b938941057)
2002-12-04 22:48:13 +00:00
Jeremy Allison
5ed2d4a1d3 Reformat of reply.c before Volker's patch.
Jeremy.
(This used to be commit c3877cfb9c9f3f9f86e32169cbb69c3c5bb2e3db)
2002-12-03 23:57:45 +00:00
Jeremy Allison
6a019636b9 Fixed nasty bug where file writes with start offsets in the range
0x80000000 -> 0xFFFFFFFF would fail as they were being cast
from IVAL (uint32) to SMB_OFF_T (off_t or off64_t, both *signed* types).
The sign extension would cause the offset to be treated as negative.
Thanks to Herb for helping me track this one down (IRIX is good for large
file tests :-).
Jeremy.
PS. That horrid EXEXIST thing has broken configure.....
(This used to be commit 2d14c442bc601a277458b69f05a763aa2a1ab3b7)
2002-12-03 08:02:41 +00:00
Jeremy Allison
2f194322d4 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
(This used to be commit f755711df8f74f9b8e8c1a2b0d07d02a931eeb89)
2002-11-12 23:20:50 +00:00
Jeremy Allison
66b62281e2 Ensure can_delete returns the correct error code.
Jeremy.
(This used to be commit 52af4ed9ecd8ef5f31ce00c94bc55d6013a7f65a)
2002-11-05 22:49:07 +00:00
Gerald Carter
a834a73e34 sync'ing up for 3.0alpha20 release
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-09-25 15:19:00 +00:00
Jelmer Vernooij
127e77e6e3 Sync 3.0 branch with head
(This used to be commit 42615b945e2e48e53a21ea47f2e45407913a6a1e)
2002-08-17 15:27:10 +00:00
Andrew Tridgell
e90b652848 updated the 3.0 branch from the head branch - ready for alpha18
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-07-15 10:35:28 +00:00
Andrew Tridgell
9cd0306baa This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
(This used to be commit be23d87a178e7d0691e7d942adf89bb3d2d533c2)
2002-04-11 02:20:56 +00:00
Jeremy Allison
4ad0ff29bf Added Shirish's client side caching policy change.
Jeremy.
(This used to be commit 16015c07eab2e57fa3771051e3e08fde21757cfa)
2002-04-10 01:04:13 +00:00
Andrew Bartlett
c21ff8f762 Reintroduce the 2.2 name mangling code, until we get are more flexible solution.
Even for a hash/cache setup, this code needs some more work, in particular
it needs to use mangle_get_prefix() etc and to move to unicode internals.

Andrew Bartlett
(This used to be commit ad8aa470575c39fcbc7f1440bf1081d7ea31c0aa)
2002-04-08 01:58:44 +00:00
Jeremy Allison
2a664807c5 Fixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.
Forward ported some of the code tidyups from 2.2.
Jeremy.
(This used to be commit 2475c09b354cc7b5f4ce384e4497207d30f619bb)
2002-04-02 19:34:36 +00:00
Jeremy Allison
8f9d7ebb35 Removed unused variable.
Jeremy.
(This used to be commit 4eb29ac559faf29b348a4097a33f9cbf4cf9d057)
2002-03-26 03:07:51 +00:00
Jeremy Allison
c90cd26e94 Fix the mp3 rename bug - also tidy up our open code and remove the special
cases for rename and unlink. Had to add desired_access into the share mode record.
Jeremy.
(This used to be commit 3b1b8ac43535fb0839c5474fa55bf7150f6cde31)
2002-03-23 02:57:44 +00:00
Jeremy Allison
b9e91d2a8e Remove the "stat open" code - make it inline. This should fix the
bugs with opening and renaming mp3 files, also the word rename
problems that people have had for a while.
Needs a make clean :-) make.
Also added JohnR's printing fix.
Jeremy.
(This used to be commit 504e5ef0494c54efbd0357e334cb2aa5a9eb9c14)
2002-03-20 00:46:53 +00:00
Jeremy Allison
ffadd471b9 Sync up vfs changes from 2.2.x.
Jeremy.
(This used to be commit ad1e858d8e72adf924ff435eab8da3e60842e2e6)
2002-03-19 02:32:39 +00:00
Tim Potter
ab13654dc9 Renamed get_nt_error_msg() to nt_errstr().
(This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
2002-03-17 04:36:35 +00:00
Gerald Carter
65c007b583 syncing up printing code with SAMBA_2_2 (already done some merges
in the reverse).

  * add in new printer change notify code from SAMBA_2_2

  * add in se_map_standard() from 2.2 in _spoolss_open_printer_ex()

  * sync up the _print_queue_struct in smb.h (why did someone change the
    user/file names in fs_user/fs_file (or vice-versa) ? )

  * sync up some cli_spoolss_XXX functions
(This used to be commit 5760315c1de4033fdc22684c940f18010010924f)
2002-03-15 08:14:10 +00:00
Tim Potter
2ba1950c79 Fixed bodgy printf arguments in debug statment.
Who would have guessed it - we now use floating point maths in Samba.
(This used to be commit 6a053fa770b69f21fef52966a0b577b7ac9e817e)
2002-03-13 22:55:47 +00:00
Jeremy Allison
5e3b923124 include/smb_macros.h: Don't round up an allocation if the size is zero.
"One of these locks is not like the others... One of these locks is not
quite the same" :-). When is a zero timeout lock not zero ? When it's
being processed by Windows 2000 of course.. This code change, ugly though
it is - completely fixes the foxpro/access multi-user file system database
problems that people have been having. I used a *wonderful* test program
donated by "Gerald Drouillard" <gerald@drouillard.ca> which allowed me
to completely reproduce this problem, and to finally determine the correct
fix. This also explains why Windows 2000 is *so slow* when responding to
the smbtorture lock tests. I *love* it when all these things come together
and finally make sense :-).
Jeremy.
(This used to be commit 8aa9860ea2ea7f5aed4b6aa12794fffdfa81b0d0)
2002-03-13 20:28:19 +00:00
Andrew Tridgell
57970fd4e2 make sure we give an error for unknown lockingX locktype bits
(This used to be commit 72cb43b912a4c1831f9d7b2fd23ce51aebb09c8f)
2002-03-11 01:34:14 +00:00
Jeremy Allison
5d1db25abd Mask off the aDIR on setfileinfo.
Jeremy.
(This used to be commit d9cb1bf20ac8a739102b03d9a70e34fe5cb2f0f7)
2002-03-05 01:43:50 +00:00
Jeremy Allison
2da4d64cfc Added "nt status support" parameter. Fix offline synchronisation.
Jeremy.
(This used to be commit 9243a9778e52999d5c62cba484640637b24994d8)
2002-02-27 21:46:53 +00:00
Tim Potter
cd68afe312 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-30 06:08:46 +00:00
Jeremy Allison
9d8ed7220f Fixed display of "remote downlevel document" in old print job submission
case.
Jeremy.
(This used to be commit 248770d73072e36fd9812ec5986dce5380dfab33)
2002-01-25 20:16:14 +00:00