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
Christopher R. Hertel
6693cade73 Added code to the handling of the -M option to ensure that we default to
port 139 for that option.  The NetBIOS Messenger Service doesn't run on
a non-NBT port.
(This used to be commit 02986f3e3a8b0411f7cfbfe11015602fe685a440)
2003-01-07 04:33:43 +00:00
Christopher R. Hertel
e8a70338d9 Added code to the handling of the -M option to ensure that we default to
port 139 for that option.  The NetBIOS Messenger Service doesn't run on
a non-NBT port.
(This used to be commit a10195b7112b0a7cca3ddb5be2566364c59fefb7)
2003-01-07 04:26:37 +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
Andrew Bartlett
6d66fb308a BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
(This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2003-01-02 09:07:17 +00:00
Herb Lewis
41969738a4 merge from 2.2 fix for smbclient large files
(This used to be commit 17f685fdbf5d36f82e3da0a09457f5e248b3f109)
2002-12-19 20:26:44 +00:00
Herb Lewis
c52a34693d merge from 2.2 fix for smbclient large files
(This used to be commit 723c4caf64c56b78052c52fec78c7143ec19e944)
2002-12-19 20:23:45 +00:00
Herb Lewis
e76f1ffa7e merge smbtar fix from 2.2
(This used to be commit 41188337c3fa8c716dc7a4721ee5c31e5ddd928d)
2002-12-16 21:32:32 +00:00
Herb Lewis
96978d397a merge smbtar fixes from 2.2
(This used to be commit f3b994326ea4bfc9a74acb2901c733c35900af53)
2002-12-16 21:30:20 +00:00
John Terpstra
ad43ee6f5b Updating changes from HEAD.
(This used to be commit 20efb6252cd95fe9ce08298cfdd29d975a53f241)
2002-12-10 23:19:18 +00:00
Herb Lewis
21e21dfd21 fix stat reporting on put command
(This used to be commit aa38aaf36338a2c9e708410d6b1befa6d65c93cc)
2002-12-05 00:50:29 +00:00
Herb Lewis
c77586e297 fix stat reporting on put command
(This used to be commit c53e10ff879535e931cb3267d9190fd798d85b31)
2002-12-05 00:47:41 +00:00
Andrew Bartlett
9de7abd8db Link less with smbmnt and smbumount. Also change from a pstrcpy() to a
strncpy() to make it clear that we must operate on a PATH_MAX sized buffer.

Andrew Bartlett
(This used to be commit 49d9698ef08d66dc238b2e3469da8944b444dfa1)
2002-12-01 04:11:20 +00:00
Jeremy Allison
ce35c5d0fa Sorry Jim we can't assign to global_xxx(), we need to call set_global_xxx()
to ensure the malloc is done.
Jeremy.
(This used to be commit 57f7ab45b783f64a3f3337a893ba3ddef953c133)
2002-11-13 02:22:39 +00:00
Jeremy Allison
2bd37f8565 Sorry Jim we can't assign to global_xxx(), we need to call set_global_xxx()
to ensure the malloc is done.
Jeremy.
(This used to be commit e57853000aacc61ba3c73907a7afb85385b378c3)
2002-11-13 02:21:55 +00:00
Jim McDonough
fb51582f25 Bring smbmount.c in line with jra's global-cide. global_scope was used here...
(This used to be commit 79a0f2c2519b0503a8323fd0babfd18ec59b8d5e)
2002-11-13 01:58:19 +00:00
Jim McDonough
c8d96f887d Bring smbmount.c in line with jra's global-cide. global_scope was used here...
(This used to be commit 5170a9f7ffac93c619358353834bc3024a6746d2)
2002-11-13 01:54:44 +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
250c980119 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 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-12 23:15:52 +00:00
Jelmer Vernooij
5e39c988f6 Remove testsmbc.c from source/ in 3.0 as well. It's already in examples/
(This used to be commit c1b3cffb3f2087cfb4848ebca72e482c79ac0b6f)
2002-11-10 11:42:51 +00:00
Andrew Bartlett
017eec27bc Merge append_log fix from HEAD
(This used to be commit 2e338654170cecf5cc46b75958242a4732e1cd3f)
2002-11-09 23:18:25 +00:00
Andrew Bartlett
a0dd6128bf Kill append_log from smbmount (thanks vance for reminding me).
Andrew Bartlett
(This used to be commit 7501b2a51835bae005d2ac015c3a428eaadce032)
2002-11-09 23:17:01 +00:00
Jelmer Vernooij
dc5297f413 Sync with HEAD
(This used to be commit 1a25dc776ddc36de9a214e023becff1ceb10290c)
2002-11-09 16:57:45 +00:00
Jelmer Vernooij
a3090f0cc8 Move testsmbc.c to examples
(This used to be commit fdd70614d2dc29f6a676c30e254a0bf024687fb4)
2002-11-04 17:11:18 +00:00
Jelmer Vernooij
1bd97040d1 Sync with HEAD
(This used to be commit 987b62137d38fc295dab75bdbc004031a99f4d56)
2002-10-29 17:21:59 +00:00
Jelmer Vernooij
9cfa18208b Don't encourage people to use -P - it's obsolete
(This used to be commit 59ecac901a231383bd4cacb326724f786e3d7244)
2002-10-18 23:27:49 +00:00
Jeremy Allison
389a16d9d5 Added new error codes. Fix up connection code to retry in the same way
that app-head does.
Jeremy.
(This used to be commit b521abd86b10573ca8f9116907c81e6deb55f049)
2002-10-17 17:10:29 +00:00
Jeremy Allison
c53eb2ed54 Added new error codes. Fix up connection code to retry in the same way
that app-head does.
Jeremy.
(This used to be commit ec7953f20145799f6286a295472df4826bfdfb8f)
2002-10-17 17:10:24 +00:00
Andrew Bartlett
3a5577e552 Patch from Steve Langasek <vorlon@netexpress.net> to use nice big integers when
attempting to calculate the bytes/second being transferred.  (Avoid overflow
etc)

Andrew Bartlett
(This used to be commit cd41e5ab857a33e05fa231756ff15707f2f5ce23)
2002-10-03 03:27:00 +00:00
Gerald Carter
f2d1f19a66 syncing up with HEAD. Seems to be a lot of differences creeping in
(i ignored the new SAMBA stuff, but the rest of this looks like it should
have been merged already).
(This used to be commit 3de09e5cf1f667e410ee8b9516a956860ce7290f)
2002-10-01 18:26:00 +00:00
Richard Sharpe
ed521b0cc4 Make sure that variable does not shadow a parameter.
(This used to be commit d83cae2bbd1625aeb3b7c73ba8dde2d1371e7f89)
2002-09-29 06:44:13 +00:00
Richard Sharpe
6fa3f56e0a Commit a fix to smbclient so that it will connect to EMCs and NetApp's machines.
(This used to be commit 1e4ac9615d26bfbf90e3a45f088564f448f689ce)
2002-09-28 03:38:37 +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
Tim Potter
af78eafa6c Don't uppercase the username and domain in a session setup.
(This used to be commit 0ad19825df318030b1772404570cd993fe49e40a)
2002-09-23 21:24:31 +00:00
Volker Lendecke
4af9c9ce3b Fixed a little, long standing bug: smbclient -M <name> should resolve
name#03, not name#20.

Volker
(This used to be commit 99017e887e4189ac7f6e3b7df08f028dc155191e)
2002-09-05 11:40:06 +00:00
Simo Sorce
05876f8bcd fix wrong check
(This used to be commit cb0ed2faa5ed9163421a0f58d45bcd7ec38f06ec)
2002-08-28 16:01:42 +00:00
Jeremy Allison
c3d707b088 Remove strsep - non portable.
Jeremy.
(This used to be commit 03c49b2e519acb8cc7278ac97a203a7d122d2869)
2002-08-27 16:48:58 +00:00
Simo Sorce
8f6c926a8f add a trivial seeking function to xfile (tseek) that does not do SEEK_CUR
and add commands reget and reput to smbclient that continues a transfer that has been onterrupted.

thanks to josef Zlomek that did the original patch.
(This used to be commit b275547c9ecc13bede5bd21a392fa1d695a3926d)
2002-08-27 09:07:08 +00:00
Simo Sorce
ca0345623d fix typos
thanks Josef Zlomek
(This used to be commit fb32fd99b9878db2bacf0588d30fd5f1f37dbfd7)
2002-08-20 21:21:56 +00:00
Jelmer Vernooij
b2edf254ed sync 3.0 branch with head
(This used to be commit 3928578b52cfc949be5e0ef444fce1558d75f290)
2002-08-17 17:00:51 +00:00
Andrew Bartlett
6ddba1e99b Fix the %m security bug again - and try to make it harder to reintroduce in
future.

This moves us from fstrcpy() and global variables to 'get' and 'set' functions.

In particular, the 'set' function sainity-checks the input, in the same way as
we always have.

Andrew Bartlett
(This used to be commit e57a896f06b16fe7e336e1ae63a0c9e4cc75fd36)
2002-08-10 23:20:04 +00:00
Andrew Tridgell
80c39a9c1f fix for smbtar filename matching
samba-patches 852
(This used to be commit e2558baa32657a71fd7e0958446f72e373cfadc9)
2002-07-28 07:53:14 +00:00
Andrew Bartlett
a6a612a814 Looks like I missed this earlier. We should connect as the specified workgroup
- sombody using smbspool won't always have a full smb.conf, and this is how it
was written in the first place anyway.

Again, found by the IRIX compiler.

Andrew Bartlett
(This used to be commit 31181158766cd5f0e8409854f3c304f6fb46582b)
2002-07-21 01:20:28 +00:00
Andrew Bartlett
29075c97d3 More fixes towards warnings on the IRIX compiler
(and yes, some of these are real bugs)

In particular, the samr code was doing an &foo of various types, to a function
that assumed uint32.  If time_t isn't 32 bits long, that broke.

They are assignment compatible however, so use that and an intermediate
variable.

Andrew Bartlett
(This used to be commit 30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6)
2002-07-20 13:02:47 +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 Bartlett
04538bfb6c Make smbmnt a standalone program from a linker point of view. Hopefully this
will make it easier to prove this package correct from an audit point of view.

smbumount to follow, but it uses pstrcpy() so I'll need to decide what to do
with that.

Andrew Bartlett
(This used to be commit 62c56f97248109ca80cc155974584bea9704cd50)
2002-07-13 09:14:40 +00:00
Andrew Tridgell
ebfff1a475 - fixed a crash bug for 'print -'
- removed an unused variable
(This used to be commit 66af95716de470600b0db58bdf8a1f0c15dba036)
2002-07-13 03:51:28 +00:00
Andrew Tridgell
3e63f3e106 fixed a prototype problem in client.c
(This used to be commit 922ab73c3c8f510fdbcb8b64d54b512d32c47b75)
2002-07-02 01:35:07 +00:00
Andrew Tridgell
9930b0b065 used findstatic.pl to make some variables static and remove some dead
code
(This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
2002-07-01 09:12:41 +00:00
Andrew Bartlett
0746576113 Update cli_full_connection() to take a 'flags' paramater, and try to get a
few more places to use it.

Andrew Bartlett
(This used to be commit 23689b0746d5ab030d8693abf71dd2e80ec1d7c7)
2002-06-25 08:57:24 +00:00
Andrew Bartlett
e3958c2105 And another .cvsignore
(This used to be commit fa0037a294a9faaf3cdc894e2ec1280dad157553)
2002-06-25 08:34:17 +00:00