1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

652 Commits

Author SHA1 Message Date
Jeremy Allison
3ef0710fa4 r2361: Fix the appalling toktocliplist() fn. Bug found by Luis Benvenutto.
Jeremy.
(This used to be commit d434d8e2b47bc8553ee04bd7211f622e3fcbb7fb)
2007-10-10 10:52:40 -05:00
Tim Potter
423d98fe93 r1908: Bugzilla #1541. Fix recursive ls in smbclient. Fix by Josef Zlomek.
(This used to be commit e59af43f6b8f824447bd20efc08dd81f2774e99c)
2007-10-10 10:52:23 -05:00
Steve French
eeb72e0eb6 r1616: Fix user unmount of shares mount with suid mount.cifs
(This used to be commit 2bd28007159a3ce4a1b8737218e7b75bc2286682)
2007-10-10 10:52:17 -05:00
Jelmer Vernooij
3382b0a21a r1320: Return an error when the last command read from stdin fails in smbclient +
prepare for better error checking in tar..
(This used to be commit 374f00b56b7e9bff08e70ee2d93538b2c7fde7b7)
2007-10-10 10:52:06 -05:00
Jeremy Allison
2acd084866 r1154: Change default setting for case sensitivity to "auto". If set to auto
then is the client supports it (current clients supported are Samba and
CIFSVFS - detected by the negprot strings "Samba", "POSIX 2" and a bare
"NT LM 0.12" string) then the setting of the per packet flag smb_flag
FLAG_CASELESS_PATHNAMES is taken into account per packet. This allows
the linux CIFS client to use Samba in a case sensitive manner.
Additional command in smbclient "case_sensitive", toggles the
flag in subsequent packets.
Docs to follow.
Jeremy.
(This used to be commit cf84c0fe1a061acc0313f7db124b8f947cdf623d)
2007-10-10 10:51:57 -05:00
Jeremy Allison
2fc57c9a2c r1085: Now it's had some proper user testing, merge in the deferred open fix. I'm
still doing more testing, but it fixes a behaviour that we've been wrong
on ever since the start of Samba.
Jeremy.
(This used to be commit 894cc6d16296b934c112786eec896846156aee5d)
2007-10-10 10:51:54 -05:00
Jelmer Vernooij
e4952bf590 r947: Patch from Fabian Franz <FabianFranz@gmx.de> that allows you
to specify a port in the device URL.
(This used to be commit e6dcda2b10c4871ca8488bf04b22c2c11673621d)
2007-10-10 10:51:51 -05:00
Steve French
e476cc5903 r737: Handle -S and user mount parms
(This used to be commit ea597e75237cf14343b217da7119f9ade2303ae5)
2007-10-10 10:51:36 -05:00
Jeremy Allison
5cc86fe405 r710: Fix smbclient symlink command when widelinks = no.
Jeremy.
(This used to be commit ed699a73f899b3212185ecf52d1c4cd59cc8a7ea)
2007-10-10 10:51:35 -05:00
Jeremy Allison
1db9257c95 r96: Stupid f&%'n UNIX extensions.... SETPATHINFO
normally takes as it's param entry the filename to
be acted upon.... Unless it's UNIX extensions create
hardlink, or UNIX extensions create symlink. Then it's
param -> newfile name
data -> oldfile name.
This caused me to stuff them up in 3.0.2 (and the
client commands link and symlink). Fixed them, everything
is now called oldname and newname - thus specifying which
name should already exist (hint - the old one...) and which
will be created (newname).
Jeremy.
(This used to be commit 21cc6ab7e8a41160a3e2970623ade7445b5214d6)
2007-10-10 10:51:08 -05:00
Steve French
d2b58ab66f r88: Add missing guest mount option for mount.cifs
(This used to be commit e688c08d330836640af91c734d2c6f451c2f4337)
2007-10-10 10:51:08 -05:00
Steve French
f01b3a1576 r77: Fix path canonicalization of the mount target path and help text display in the cifs mount helper
(This used to be commit 69861f168c6be90b4e7f47e29006b2d60d442ffd)
2007-10-10 10:51:07 -05:00
Alexander Bokovoy
c4255df992 r76: Fix smbfs problem with Tree Disconnect issued before smbfs starts its work.
We use cli_state.smb_rw_error to pass this specific case into cli_close_connection()
from smbmount as smb_rw_error can have only selected number of states and
it is ignored in cli_close_connection().

Compiled and tested by Lars Mueller from SuSE on x86, x86_64, ppc, ppc64, s390 and
s390x.
(This used to be commit 738666ce0a310fae14476020fd6dac027b0e3ec5)
2007-10-10 10:51:07 -05:00
Gerald Carter
931df5850e r39: * importing .cvsignore files
* updateing WHATSNEW with vl's change
(This used to be commit a7e2730ec4389e0c249886a8bfe1ee14c5abac41)
2007-10-10 10:51:05 -05:00
Steve French
70c6c78395 r18: Fix free of incremented pointer
(This used to be commit dfac69be4fc63745e2d0b4cecb8106286c7c8ca0)
2007-10-10 10:51:03 -05:00
Steve French
620e1eaddc Fix credential file mountinf for cifs vfs
(This used to be commit 9ad22b8a3d839501b72f3b96d43a22365c15ec43)
2004-04-02 00:11:27 +00:00
Gerald Carter
bfa1b2a8bd source code fix for bug 1095 -- honor the '-l' option
(This used to be commit ab48af6993b427f525c36aa0ffd57c612c100561)
2004-03-26 15:40:06 +00:00
Jeremy Allison
7942c2826b Merge from HEAD for Amanda group.
Apply Craig Barratt's fixes to allow multiple exlusion files and patterns.
Jeremy.
(This used to be commit 0272fac8ca40b3d4ea4de8ac8a2e371d450d12e6)
2004-03-18 23:45:15 +00:00
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