1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

413 Commits

Author SHA1 Message Date
cvs2svn Import User
74d3be0218 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit f0d009c3e91979b0dc3443e16f3f545bcc64cfda) 2003-03-18 07:09:24 +00:00
Andrew Bartlett
400bb4bfab - 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 fe2bc64bc439b27387b8f326b0f4f3bfcc3d04a1)
2003-03-16 13:21:12 +00:00
Steve French
2055e724ad Checkin cifs vfs for Linux mount helper
(This used to be commit a55acfd7a296c5ae9b043dc03393a29d87e43a40)
2003-03-15 22:35:47 +00:00
Andrew Bartlett
58abc7b5b6 If the server went away, don't segfault by attempting to FD_SET -1.
Andrew Bartlett
(This used to be commit 4b1337ee94a19e39a2f4012c4dbc32a2e58cacf5)
2003-03-15 06:50:45 +00:00
Andrew Bartlett
01289b14a7 Make sure that the 'remote' machine name can only be set once. For some weird
reason, during a Win2003 installation, when you select 'domain join' it sends
one machine name in the name exchange, and litraly 'machinename' during the
NTLMSSP login.

Also fix up winbindd's logfile handling, so that it matches smbd and nmbd.

(This helps me, by seperating the logs by pid).

Andrew Bartlett
(This used to be commit afe5a3832f79131fb74461577f1db0e5e8bf4b6d)
2003-03-08 10:22:50 +00:00
Steve French
f944fd6975 Add early prototype of cifs mount helper for Linux
(This used to be commit b20bcf8d336b4b2079eb42342a96d1fe714709de)
2003-03-07 22:29:14 +00:00
Andrew Bartlett
192148bab3 More safe_strcpy() off-by-one bug fixes. (mostly moves to pstrcpy()/fstrcpy())
Andrew Bartlett
(This used to be commit 42b5514404bc7e33306c11344c6c934a1f83d295)
2003-03-06 07:55:48 +00:00
Richard Sharpe
e3fdd289f5 More janitorial duties, fixing the BIG_UINT changes for large offsets.
(This used to be commit 1af39523cc3b2313f3e8acd4f2e5338182ec0b13)
2003-03-03 23:00:22 +00:00
Richard Sharpe
3042cfb7fa Do my janitorial duties to encourage others to do so.
Fix lingering large offset problems in smbtar etc.
(This used to be commit c416eec2f2a38eebfcda5868999d474628037f1e)
2003-03-03 17:43:33 +00:00
Tim Potter
64e53c9b22 Fix breakage done by myself yesterday.
(This used to be commit f4492de2d668082df6ae06933d12a3cfe120d403)
2003-02-25 23:28:28 +00:00
Tim Potter
3a2f56cb63 Fixed up some const related compiler warnings.
(This used to be commit 923425e497112c5d1e2e569da6c13dcd02b6a8af)
2003-02-25 06:24:13 +00:00
Andrew Bartlett
630944d179 Cleint-side-auth/kerberos fixes from HEAD, and don't connect to a share
twice, let the libsmb code determine what form the share name should take.

Andrew Bartlett
(This used to be commit a25f6126647c94551c03bfc28e3fb5ec5ef6264a)
2003-02-24 03:28:37 +00:00
Andrew Bartlett
108580c224 The cli_send_tconX code already determines to send \\server\share to port 139
and share to 445, so doing this only confuses the issue (sending
\\server\\server\share to 139) and makes debugging specific error codes more
difficult.

Andrew Bartlett
(This used to be commit 1a723bcda72901dac00b36955e860e3af23c0dc6)
2003-02-18 00:36:37 +00:00
Simo Sorce
07886ac856 fix dumb perror used without errno beeing set.
thanks to RedHat developers for the report
(This used to be commit e257141c9b3703ef73ee312f3ec30d377e0d3293)
2003-02-15 21:37:15 +00:00
Simo Sorce
584206dccf fix dumb perror used without errno beeing set.
thanks to RedHat developers for the report
(This used to be commit 4a3c6c62d979707900b95e6c38b0132f522269ca)
2003-02-15 21:36:28 +00:00
Andrew Bartlett
e4202a9fe7 Antti Andreimann <Antti.Andreimann@mail.ee> has done some changes to enable
users w/o full administrative access on computer accounts to join a
computer into AD domain.

The patch and detailed changelog is available at:
http://www.itcollege.ee/~aandreim/samba

This is a list of changes in general:

1. When creating machine account do not fail if SD cannot be changed.
   setting SD is not mandatory and join will work perfectly without it.
2. Implement KPASSWD CHANGEPW protocol for changing trust password so
   machine account does not need to have reset password right for itself.
3. Command line utilities no longer interfere with user's existing
   kerberos ticket cache.
4. Command line utilities can do kerberos authentication even if
   username is specified (-U). Initial TGT will be requested in this case.

I've modified the patch to share the kinit code, rather than copying it,
and updated it to current CVS.  The other change included in the original patch
(local realms) has been left out for now.

Andrew Bartlett
(This used to be commit ce52f1c2ed4d3ddafe8ae6258c90b90fa434fe43)
2003-02-15 00:29:21 +00:00
Alexander Bokovoy
ff1db7b4f7 Fix typo in WIFSIGNALED (as per Waider's report)
(This used to be commit 4463ffeed91163314d2d903a271b29e87edaadcf)
2003-02-13 16:29:12 +00:00
Martin Pool
404a3f34c8 waitstatus audit: Correctly handle case where smbmnt is killed by a
signal.  Previously this was incorrectly treated as success.
(This used to be commit fe5582c1b2e1c6a6ed5e048dd169a1fcf908069c)
2003-02-13 04:45:40 +00:00
Jeremy Allison
5bc835c188 Samba janitors: applying mbp's redundant umask fix.
Jeremy.
(This used to be commit 45d4e58ca5da1c01f135470257bb17a5257e6fb2)
2003-02-07 22:52:35 +00:00
Jeremy Allison
9e8fc1ee4e Samba janitors: applying mbp's redundant umask fix.
Jeremy.
(This used to be commit b54f6bf06c6a4032ba0d6c2a25699948685ccf6a)
2003-02-07 22:52:19 +00:00
Tim Potter
11245e0fc3 smb signing compile fix
(This used to be commit 22d7aa0e673baa1c26205d1c659ba71ad2f94609)
2003-02-02 22:49:28 +00:00
Andrew Bartlett
ac2eeb7a8f More signing updates - start checking that the server isn't being spoofed.
Andrew Bartlett
(This used to be commit b1c722e306533babeffeba9d8c7dcfa00e019423)
2003-02-02 00:11:12 +00:00
Martin Pool
115f3d8470 Add FIXME about dodgy argument parser.
(This used to be commit a58028330849dbb1706793fdc6e36161f7baebed)
2003-01-20 00:53:35 +00:00
Gerald Carter
d7ed1e1362 s/WIFSIGNALLED/WIFSIGNALED/g
(This used to be commit dc6cda595179b8c53f15d4bc92faf782f3e2d482)
2003-01-15 23:11:57 +00:00
Gerald Carter
523e406daf s/WIFSIGNALLED/WIFSIGNALED/g
(This used to be commit 251585142bb5d13951160a76f65bb2bf32f209bf)
2003-01-15 23:11:45 +00:00
Gerald Carter
99cdb46208 *lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
(This used to be commit 0fb724b3216eeeb97e61ff12755ca3a31bcad6ef)
2003-01-15 18:57:41 +00:00
Martin Pool
ec894b5695 One more from waitpid() audit: Correctly interpret waitstatus when a
child fails.  Possibly this was causing smbmount to exit(0) when it
really should have indicated a failure.
(This used to be commit 1e33083fe66dfc1e168ffeb2f9d87953534a2d5d)
2003-01-15 05:27:33 +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
Andrew Bartlett
73b0a2bdf8 Fix a number of client-side fstring/pstring mixups.
Andrew Bartlett
(This used to be commit fe1cc779d5ea77e87dbc0e2edf7c34a354fee6e0)
2003-01-11 12:04:14 +00:00
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