1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

684 Commits

Author SHA1 Message Date
Alexander Bokovoy
6011a89e24 Fix problems with very long filenames in both smbd and smbclient.
It appears that we pass filename through resolve_wildcards() as pstring and use fstring temporary buffer there.
As result, a long filename in unix charset (UTF-8 by default) can easily expand over 255 bytes while
Windows is able to send to us such names (e.g. Japanese name of ~190 mb chars) which we unable to process through
this small fstring buffer. Tested with W2K and smbclient, Japanese and Cyrillics.
(This used to be commit 83dac6571f99b854ac607d4313cc3f742c1fae2e)
2004-03-12 14:37:37 +00:00
Gerald Carter
929b0b72d5 BUG 1088: patch from SATOH Fumiyasu <fumiya@miraclinux.com> -- use strchr_m() for query_host (smbclient -L)
(This used to be commit bc6992c4bffed043dd8ad58d721202091cd14cd3)
2004-03-11 14:39:32 +00:00
Jeremy Allison
f0039da196 Added client "hardlink" commant to test doing NT rename with hard links.
Added hardlink_internals() code - UNIX extensions now use this too.
Jeremy.
(This used to be commit aad6eb2240393931940c982e25a981ce32264f38)
2004-03-03 23:14:23 +00:00
Jeremy Allison
fba5a72249 Use a common function to parse all pathnames from the wire. This allows
much closer emulation of Win2k3 error return codes.
Jeremy.
(This used to be commit c9f31fafeda6ad79e590276f36e03ecd2e93f818)
2004-03-03 20:55:59 +00:00
Gerald Carter
659d6a2b61 BUG 692: patch from SATOH Fumiyasu <fumiya@miraclelinux.com> to correct truncation of share names and workgroup names
(This used to be commit 822e31d841e720d48f4feeec673b75575caa8fac)
2004-03-01 17:40:40 +00:00
Steve French
a3425dad72 Fixes to minor security bug pointed out by AB in the mount helper
(This used to be commit b83802c5a14800554d30c32c12ae3a86e3136bdf)
2004-02-26 06:42:51 +00:00
Steve French
5e39e9f313 Fix incorrect strnicmp len
(This used to be commit ad1ebb5000066d44ce94f0341fb31351b3900e95)
2004-02-17 22:51:42 +00:00
Steve French
d5ad8c5099 Disable dev (MS_NODEV) on user mounts from cifs vfs
(This used to be commit 9b0d1072bc66d05d0e9afcbe0da349ccaa99ba6e)
2004-02-17 21:31:25 +00:00
Steve French
269082724a Disable suid on user mounts (can override with -DCIFS_ALLOW_USR_SUID)
(This used to be commit a718f16e0bf78139ea46383feec0ce72c63a4986)
2004-02-16 23:43:14 +00:00
Gerald Carter
663f07d63b urban's changes for nosuid,nodev
(This used to be commit ed46d9aef3b423f583475da77db672b685ddf531)
2004-02-13 17:32:20 +00:00
Richard Sharpe
db40d06dd4 Commit Andrew Bartlett's interesting patch to smbclient that allows for
multiple logins and changing vuids. I fixed up a couple of variables so it
actually works.

We want to use this to test our multiple SIDs in the kernel changes etc.
(This used to be commit 4df824d38bd7673b27dd7d7f880420e78a136032)
2004-02-12 17:26:34 +00:00
Steve French
e7a09dd637 Update mount.cifs version to 1.1
(This used to be commit e73b6a5ae51687c42b621f6bf496c8ae1a73aee1)
2004-02-11 23:14:39 +00:00
Steve French
70fde6311d Mount helper fixes for nosetuid, noexec part two of two
(This used to be commit c2b4d81a8dae23170d32713e3e766dcf5be9a040)
2004-02-11 23:11:00 +00:00
Steve French
33b944911f Add missing nosetuid and noexec options
(This used to be commit 5bb6429cc46f4bedd87b309ed98b61b10684cd0f)
2004-02-11 22:54:01 +00:00
Gerald Carter
3cd61b1597 BUG 900: TAKEDA yasuma <yasuma@miraclelinux.com; fix token processing in cmd_symlink, cmd_link, cmd_chown, cmd_chmod functions
(This used to be commit 60eb69ff64cc9836072f8f3894e8bc685dc7466a)
2004-02-11 21:42:20 +00:00
Volker Lendecke
4fd80158ab Patch from "Stoian Ivanov" <sdr@bultra.com>: Add -g (greppable..) to
smbclient -L to make the output usable in pipes.

Volker
(This used to be commit 4c904210705f2be16daad21c07a4fb5117a3360b)
2004-01-16 15:01:09 +00:00
Gerald Carter
b20f1a95a9 * BUG 446
- setup_logging() in smbclient to be interactive (remove the timestamps)
  - Fix bad return value in pull_ucs2( needs more testing to make sure this
    didn't break something else) that caused clistr_pull() to always read
    the same string from the buffer (pull_usc2() could return -1 if the original
    source length was given as -1)
  - increment some debugging messages to avoid printing them out so often
(This used to be commit 79fe75dcdf6cc38e18ca1231e4357893db4d4a08)
2004-01-15 19:03:18 +00:00
Steve French
25b483dfc3 cifs mount helper merge
(This used to be commit 865fcdcb85d47eeff854f4df0aba0c0f3452bdd9)
2004-01-05 22:18:44 +00:00
Steve French
2e879cfacc mount.cifs failed to mount to directory owned by user when run setuid
(This used to be commit 18c0315c3cb1a28fd870f8dd5d92f2e9117a29fc)
2003-12-11 19:47:52 +00:00
Tim Potter
f46e42c69d Fix crash bug in smbclient completion. Closes bug #659.
(This used to be commit 4480058d85ebe9175c4720c18100b459877dbd07)
2003-11-04 22:38:58 +00:00
Alexander Bokovoy
3531647574 Fix segfault in mount.cifs helper when there is no options specified during mount
(This used to be commit fb87388a9fe959ecb01d88e2f974b077bac0a34d)
2003-10-22 15:41:08 +00:00
Jeremy Allison
a4e5e3f3a5 Fix from Craig Barratt <cbarratt@users.sourceforge.net> to fix restore
with filenames > 100 chars.
Jeremy.
(This used to be commit aa40a86cbe797cba4e281cb8dc09b2ae67e93dc2)
2003-09-12 01:25:35 +00:00
Jeremy Allison
94f59f5492 More tuning from cachegrind. Change most trim_string() calls to trim_char(0,
as that's what they do. Fix string_replace() to fast-path ascii.
Jeremy.
(This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
2003-09-05 19:59:55 +00:00
Jeremy Allison
a7e8e39b91 Proposed patch for #308. Needs testing.
Jeremy
(This used to be commit e2b73477e772ac2f527719df0d3d64c67649bb1c)
2003-09-02 23:58:39 +00:00
Steve French
78e75d4f6c Update mount helper to take synonyms for file_mode and dir_mode (fmask and dmask)
(This used to be commit 89a0e97094fa85b6339f0ad0884cf55987758263)
2003-08-29 07:31:39 +00:00
Tim Potter
64ca334696 Print an error instead of crashing if no argument is specified for
smbclient -T

Fixes bug 345.
(This used to be commit a46e58e2b6e3d9526012d6a2d903163a3373fa59)
2003-08-27 07:39:26 +00:00
Gerald Carter
658ccccdde fix bug #39; save the -W value and restore it after lp_load()
(This used to be commit 79efe7d72ba503b58c8ad3b9b1c711f5ebb33521)
2003-08-25 17:55:33 +00:00
Gerald Carter
8bfe26b62d metze's autogenerate patch for version.h
(This used to be commit ae452e51b02672a56adf18aa7a7e365eeaba9272)
2003-08-20 17:13:38 +00:00
Steve French
fac0ae1481 Fixes to all mount.cifs to run more safely setuid
(This used to be commit bdb65b9a6e033ca25d98e924d44b1639dd0c0fb9)
2003-08-16 03:32:45 +00:00
Herb Lewis
aa39cc37da get rid of more compiler warnings
(This used to be commit 398bd14fc6e2f8ab2f34211270e179b8928a6669)
2003-08-15 04:42:05 +00:00
Herb Lewis
0fc41a8962 get rid of const as these things really are not const
(This used to be commit 61bea183a229cc11f25c4a7cb5341faad9833d7b)
2003-08-15 02:25:41 +00:00
Volker Lendecke
13a7870e42 Don't ask twice for the password
(This used to be commit 8ebd92da01a72b26df769125f51934796e9e3d4f)
2003-08-14 21:57:11 +00:00
Volker Lendecke
a757fe10b1 Apply a little const
(This used to be commit e3b36906c53bd4a9231c2efb007cec234e52a78f)
2003-08-12 21:30:28 +00:00
Volker Lendecke
ce7d025b20 We get the server and workgroup list only over port 139. Fall back to that
and if NetBIOS over TCP/IP is disabled, give an error message.

Fixes Bug #284

Volker
(This used to be commit a2902a6cf8d05569d1c690436f69b4a4cedac400)
2003-08-10 21:43:28 +00:00
Jeremy Allison
ef65d26556 Ensure smbclient obeys -s smb.conf option.
Jeremy.
(This used to be commit 7950f7d6b2c5e8247bce1e96ddd1a9ec1045f7f9)
2003-08-06 22:45:46 +00:00
Jeremy Allison
e602bca52f Reversed replacement. Oops.
Jeremy.
(This used to be commit 520bee397d946766cef8ab9f0d7d89064106f510)
2003-08-06 21:31:11 +00:00
Jeremy Allison
33f6eb9a17 Anal formatting tidyup :-).
Jeremy.
(This used to be commit 9c0197471366ad1acf922e02bb694769863054a6)
2003-08-06 20:01:31 +00:00
Jeremy Allison
17a713d1b9 Get rid of MAXPATHLEN, move to standard PATH_MAX.
Jeremy.
(This used to be commit 455ed2d51d86f39ce0fa6e6abca31a5425d2ea17)
2003-08-06 19:30:42 +00:00
Jeremy Allison
72a8b31303 Fix the option processing for smbtar. Does no one check this !
Jeremy.
(This used to be commit c4af1ec73584656fb9d2b372461da4748e1643f1)
2003-08-01 21:09:10 +00:00
Jeremy Allison
d574b612e4 Finish reformatting.
Jeremy.
(This used to be commit 5ef75fa36620a87e8fd8567b854ea0770d8125ea)
2003-08-01 06:29:16 +00:00
Jeremy Allison
7e39e87ce0 Reformat lots of clitar code as I hate the style so much :-).
Jeremy.
(This used to be commit 77f2a91549c8b61e74e2088faef2b61612803aed)
2003-08-01 01:03:05 +00:00
Jeremy Allison
14f207be92 Reformat clitar option processing - getting ready to fix it for popt...
Jeremy.
(This used to be commit 94b30e7b4a4f71d3aa2fefee60b9ea8ead2acccd)
2003-08-01 00:41:57 +00:00
Jeremy Allison
29ca70cd34 Add a command line option (-S on|off|required) to enable signing on client
connections. Overrides smb.conf parameter if set.
Jeremy.
(This used to be commit 879309671df6b530e0bff69559422a417da4a307)
2003-07-30 23:49:29 +00:00
Gerald Carter
3a5dc7c2ec convert snprintf() calls using pstrings & fstrings
to pstr_sprintf() and fstr_sprintf() to try to standardize.
lots of snprintf() calls were using len-1; some were using
len.  At least this helps to be consistent.
(This used to be commit 9f835b85dd38cbe655eb19021ff763f31886ac00)
2003-07-23 12:33:59 +00:00
Andrew Tridgell
e895bd2320 fixed the pstrcpy() bug in directory recursion properly
(This used to be commit 132d6fdf635eb2bf2a1afd6e850d0f6967260f84)
2003-07-18 01:36:11 +00:00
Tim Potter
7f7b754483 Fix for bug 222 from Marcin Owsiany.
Don't get stuck in an infinite loop listing directories recursively
if the server returns an empty directory name.  This can happen with
incorrect i18n configuration on a Samba server.
(This used to be commit f93a2831f1b4e5751ca86d46a6e5ede9adf660cb)
2003-07-17 04:17:58 +00:00
Tim Potter
bcd659f26a Don't use pstrcpy on non-pstrings.
(This used to be commit 3498624d941fe200b06f114ece3373d4c4cfb2d1)
2003-07-17 03:53:43 +00:00
Tim Potter
bd9a42fa8d Fix from Dragan Krnic for handling files in tar archives > 8GB.
Fixes bug 102.
(This used to be commit b54183a7b23d1046faad0890de3fdda3df0fec88)
2003-07-16 00:13:40 +00:00
Jeremy Allison
ce0709666c More conversions I missed. Thanks metze.
Jeremy.
(This used to be commit 4f78d747e66b38edcd2a5754681f9a01aeaf7864)
2003-07-04 18:52:31 +00:00
Jeremy Allison
ce72beb2b5 Removed strupper/strlower macros that automatically map to strupper_m/strlower_m.
I really want people to think about when they're using multibyte strings.
Jeremy.
(This used to be commit ff222716a08af65d26ad842ce4c2841cc6540959)
2003-07-03 19:11:31 +00:00