21 years agoget rid of $Revision string - sync with 2.2 branch
Herb Lewis [Mon, 16 Oct 2000 23:48:37 +0000 (23:48 +0000)]
get rid of $Revision string - sync with 2.2 branch
(This used to be commit 192b088a4649c2b6b27bd30ae47d1228f9c86092)

21 years agoFixes to get ms-dfs code to compile with the new changes.
Jeremy Allison [Fri, 13 Oct 2000 21:53:51 +0000 (21:53 +0000)]
Fixes to get ms-dfs code to compile with the new changes.
(This used to be commit d712b5b071eff89eca547678cd1652263708abfb)

21 years agoAdded David O'Neills fix to HEAD (hmmm. how did this compile... :-).
Jeremy Allison [Fri, 13 Oct 2000 17:36:22 +0000 (17:36 +0000)]
Added David O'Neills fix to HEAD (hmmm. how did this compile... :-).
(This used to be commit e222057140edb3f14d76e54bd6e744919f50b4df)

21 years agolast part of W2K support.
Jean-François Micouleau [Fri, 13 Oct 2000 14:02:01 +0000 (14:02 +0000)]
last part of W2K support.

the trust domain list reply on netlogon pipe was wrong, interim hack until
we have full trust relationships.

changed some unistr2 to parse the ending NULL char.

added a prs_align_needed() function. much like a prs_align but with a
condition. needed for the unistr2 parsing.

(This used to be commit d8bf81553c17d9ee3419d8150b96119ebb0b8fa9)

21 years agoFixed merging mess.
Tim Potter [Fri, 13 Oct 2000 05:19:57 +0000 (05:19 +0000)]
Fixed merging mess.
(This used to be commit 7b8c03de1fd1461d4c65c0d7100f9519e08d1b24)

21 years agoFix to allow smbd to call winbindd if it is running for all group enumeration,
Jeremy Allison [Fri, 13 Oct 2000 01:59:14 +0000 (01:59 +0000)]
Fix to allow smbd to call winbindd if it is running for all group enumeration,
falling back to the UNIX calls on error. This should fix all problems with
smbd enumerating all users in all groups in all trusted domains via winbindd.
Also changed GETDC to query 1C name rather than 1b name as only the PDC
registers 1b.
(This used to be commit 5b0038a2afd8abbd6fd4a58f5477a40d1926d498)

21 years agoFix to allow smbd to call winbindd if it is running for all group enumeration,
Jeremy Allison [Fri, 13 Oct 2000 01:16:35 +0000 (01:16 +0000)]
Fix to allow smbd to call winbindd if it is running for all group enumeration,
falling back to the UNIX calls on error. This should fix all problems with
smbd enumerating all users in all groups in all trusted domains via winbindd.
(This used to be commit 54a1ae815b3ebcc7ab98bf0a2a39719ae3b2d5ea)

21 years agoIgnore SIGUSR2. Terminate nmbd if we have no interfaces.
Jeremy Allison [Thu, 12 Oct 2000 21:19:49 +0000 (21:19 +0000)]
Ignore SIGUSR2. Terminate nmbd if we have no interfaces.
(This used to be commit 580e2e044cfd1d011d9f28f0f49ef60ca6ba8d32)

21 years agoallow "master" smbd to call message_init so it is not killed by messages
Herb Lewis [Thu, 12 Oct 2000 19:42:18 +0000 (19:42 +0000)]
allow "master" smbd to call message_init so it is not killed by messages
sent to it's PID

Jeremy or Andrew please check this out for other possible side effects.
(This used to be commit f365950e7dafa269ace647ae1cab6201f8ecf67d)

21 years agoupdate man page for program changes
Herb Lewis [Thu, 12 Oct 2000 19:32:09 +0000 (19:32 +0000)]
update man page for program changes
(This used to be commit 1ddfec32562f755f3f4ca4dde54af6a5a2e99978)

21 years agolib/messages.c add debug print for receipt of PING and
Herb Lewis [Thu, 12 Oct 2000 17:58:40 +0000 (17:58 +0000)]
lib/messages.c          add debug print for receipt of PING and
                        REQ_DEBUGLEVEL messages
utils/smbcontrol.c      allow "q" to exit interactive mode. Exit on error
                        from message_init.
(This used to be commit cda8c0439113dcce02a681b0aaddf69326c0ec9a)

21 years agouse macros for incrementing profile counters
Herb Lewis [Thu, 12 Oct 2000 15:41:16 +0000 (15:41 +0000)]
use macros for incrementing profile counters
(This used to be commit cae5eeb16e81b6aa95c68223268513c32aed7056)

21 years agoprint source PID in PONG and debuglevel message. Allow request debuglevel
Herb Lewis [Thu, 12 Oct 2000 00:29:01 +0000 (00:29 +0000)]
print source PID in PONG and debuglevel message. Allow request debuglevel
message to go to any dest. Put timeout for commands that expect a reply.

sync with 2.2 branch
(This used to be commit 45632bb813da06d0139aa32b9ab99d472dcfaf25)

21 years agoTurns out we do need the pwnam check as on many systems the users
Jeremy Allison [Wed, 11 Oct 2000 22:38:38 +0000 (22:38 +0000)]
Turns out we do need the pwnam check as on many systems the users
primary group is not listed in the groups file...
(This used to be commit b1cb7bec51963ac2ddc62dd1abbf8f8fa4351f9b)

21 years agoFixed %d printf with unsigned long arg.
Jeremy Allison [Wed, 11 Oct 2000 17:26:14 +0000 (17:26 +0000)]
Fixed %d printf with unsigned long arg.
(This used to be commit 448ff58fd5a88b1fdadfb9a8e0bc5f38b707a4d3)

21 years agoUse sys_setgroups - systems with broken getgroups need this.
Jeremy Allison [Wed, 11 Oct 2000 17:20:18 +0000 (17:20 +0000)]
Use sys_setgroups - systems with broken getgroups need this.
(This used to be commit c7c90c83372df53eac0f3779dffedd4b28c8c757)

21 years agoSimple cleanup, but I also changed the value of the dlevel parameter passed
Christopher R. Hertel [Wed, 11 Oct 2000 16:24:20 +0000 (16:24 +0000)]
Simple cleanup, but I also changed the value of the dlevel parameter passed
to open_socket_in() from within the open_sockets() function.  This has some
effect on the way port numbers are assigned.  Basically, if we use the -r
switch we are saying 'use port 137'.  If we can't do that, there should
be an error message and a failure.  If we don't use -r then we simply select
the first available port.  The way it was working, if we selected -r and
port 137 was in use, wierd things would happen as open_socket_in() tried to
find another port.
(This used to be commit f09cb41ad86b233253758de7ef2781589ac07b86)

21 years agoConverted to call lib/wins_srv.c:wins_srv_ip() instead of lp_wins_server()
Christopher R. Hertel [Wed, 11 Oct 2000 15:54:17 +0000 (15:54 +0000)]
Converted to call lib/wins_srv.c:wins_srv_ip() instead of lp_wins_server()
when looking up the WINS server address.

Please *don't* use lp_wins_server() any more!

The wins_srv_ip() function has the following features:

- If the WINS server was entered as a DNS name then the translation to an
  IP address will already have taken place.  We used to do this every time
  a call to the WINS server was made.  Ick.

- The return value of wins_srv_ip() is a struct in_addr.  Ready to go.

- When WINS failover is fully implemented, you'll be able to enter a colon-
  separated list of WINS servers via the WINS SERVER parameter.  Using
  lp_wins_server() directly will fail if this syntax is used.

Chris -)-----
(This used to be commit 56be7c2a49a8a918318a70843fff4e89ec10d0d3)

21 years agoTry this again on the right machine. Adding files for PCP samba pmda
Herb Lewis [Wed, 11 Oct 2000 14:07:32 +0000 (14:07 +0000)]
Try this again on the right machine. Adding files for PCP samba pmda
(This used to be commit 8ad653f9ebc60c6807c1552425fa83218f6a15d4)

Tim Potter [Wed, 11 Oct 2000 05:45:06 +0000 (05:45 +0000)]
(This used to be commit 5f3cf2eb78bfa6fb00890d449d38e9f13964712c)

21 years agosync with 2.2. tree
Herb Lewis [Wed, 11 Oct 2000 05:38:37 +0000 (05:38 +0000)]
sync with 2.2. tree
(This used to be commit 8586624815f70a4448c001f14e74eabc96dd4d04)

21 years agochanges to sync with 2.2. tree
Herb Lewis [Wed, 11 Oct 2000 05:31:39 +0000 (05:31 +0000)]
changes to sync with 2.2. tree

.cvsignore              remove config.h - not in this directory
include/profile.h       profile changes
lib/messages.c          added message to return debug level
libsmb/clierror.c       cast to get rid of compiler warning
libsmb/smbencrypt.c     cast to get rid of compiler warning
profile/profile.c       add flush profile stats changes for profile struct
rpc_parse/parse_samr.c  fix for compiler warning
rpc_server/srv_samr.c   cast to get rid of compiler warning
smbd/ipc.c              profile stats
message.c               profile stats
smbd/negprot.c          profile stats
smbd/nttrans.c          profile stats
smbd/trans2.c           profile stats
utils/smbcontrol.c      new flush stats command
(This used to be commit bbb24daa25dca4e4b6b1f8942cd84ee3aa1bed8e)

21 years agoModified initgroups to provide a get groups a user is a member of
Tim Potter [Wed, 11 Oct 2000 05:25:32 +0000 (05:25 +0000)]
Modified initgroups to provide a get groups a user is a member of
functionality.  This is much faster than inverting the group database.

Added client side command for this to wbinfo.
(This used to be commit e87b2d3d1fb84311d83d21a76900f994e4ff71dd)

21 years agoDon't initialise groups twice.
Tim Potter [Wed, 11 Oct 2000 04:54:37 +0000 (04:54 +0000)]
Don't initialise groups twice.
(This used to be commit 15d7f16bdc2ff4f2ae82871eb9f318ba45cf4d1c)

21 years agoRemove duplicate group initialisation function.
Tim Potter [Wed, 11 Oct 2000 04:54:01 +0000 (04:54 +0000)]
Remove duplicate group initialisation function.

Don't initialise groups twice.
(This used to be commit 5375261152b28a65de18e817c75cab79c2f556b8)

21 years agoFix to avoid calling getgrgid for no reason.
Jeremy Allison [Wed, 11 Oct 2000 03:46:14 +0000 (03:46 +0000)]
Fix to avoid calling getgrgid for no reason.
(This used to be commit b057a7349b2d6420f96a6ebc31822da66b39fe6c)

21 years agoFix for growing printing.tdb by adding check on job creation.
Jeremy Allison [Wed, 11 Oct 2000 02:26:27 +0000 (02:26 +0000)]
Fix for growing printing.tdb by adding check on job creation.
This also updates the printing.tdb db version to 2.
(This used to be commit 13395514c632341e7be36eb9589011bb0949b075)

21 years agoRemove lpq as root fix - do this in print_job_start instead
Jeremy Allison [Wed, 11 Oct 2000 02:04:46 +0000 (02:04 +0000)]
Remove lpq as root fix - do this in print_job_start instead
as part of print queue length processing.
(This used to be commit e85a0fadd8dcf608822819f00f15569713518806)

21 years agoFixes to periodically scan printing.tdb in idle time and occasionally
Jeremy Allison [Tue, 10 Oct 2000 21:52:31 +0000 (21:52 +0000)]
Fixes to periodically scan printing.tdb in idle time and occasionally
on exit. Needed to fix printing.tdb from groving to 300Mb+ if being
driven by smbclient clients that never ask for status... (effective
DOS attack :-).
(This used to be commit 6581066b93a674fadf6f9b92441428d2cc8b4a02)

21 years agoFix found by Andrew to stop local/remote printers being
Jeremy Allison [Tue, 10 Oct 2000 19:09:48 +0000 (19:09 +0000)]
Fix found by Andrew to stop local/remote printers being
confused. check_printer_ok was causing SETPRINTER calls to fail.
(This used to be commit b41cc5fea7409d07529adad44f0cbba5c764591c)

21 years agoFixed Realloc memory fragmentation problems.
Jeremy Allison [Tue, 10 Oct 2000 18:40:03 +0000 (18:40 +0000)]
Fixed Realloc memory fragmentation problems.
(This used to be commit 5518f59976ecac796a85db959cb9e8cc6c4d3504)

21 years agoFixed nasty size wrong bug spotted by the eagle eyes of
Jeremy Allison [Tue, 10 Oct 2000 18:34:44 +0000 (18:34 +0000)]
Fixed nasty size wrong bug spotted by the eagle eyes of
JF :-).
(This used to be commit 443293a06530d0a5421b39d9a6a224d6ae316bd3)

21 years agoAdded debug so we can see how winbindd converts SIDS.
Jeremy Allison [Tue, 10 Oct 2000 18:22:50 +0000 (18:22 +0000)]
Added debug so we can see how winbindd converts SIDS.
(This used to be commit 6696bf203c90dc20c00b47737f5ea1d9b8e23d75)

21 years agoJust in case anyone thinks that Win ME is not freally just a
Gerald Carter [Tue, 10 Oct 2000 13:30:02 +0000 (13:30 +0000)]
Just in case anyone thinks that Win ME is not freally just a
facelift for Win98/95

(This used to be commit fca30085cc8c84697927e7769251205e10fd31ed)

21 years agoa netlogon enum trust query doesn't have a function_code at end.
Jean-François Micouleau [Tue, 10 Oct 2000 13:08:55 +0000 (13:08 +0000)]
a netlogon enum trust query doesn't have a function_code at end.
a sam_user_info_24 doesn't have a uint16 at end
samr_create_user also creates the unix account now
samr_set_userinfo changes the password.

(This used to be commit 94f4024481fcd0cb6647af1bd4364033be020641)

21 years agogot rid of tdb_writelock() and instead lock a chain. tdb_writelock()
Andrew Tridgell [Tue, 10 Oct 2000 06:45:09 +0000 (06:45 +0000)]
got rid of tdb_writelock() and instead lock a chain. tdb_writelock()
is conceptually flawed
(This used to be commit 6e4a3585521b7e5928298bd0f1418ff9fbcacfb4)

21 years agoadded tdb_lock_bystring() and tdb_unlock_bystring()
Andrew Tridgell [Tue, 10 Oct 2000 06:43:26 +0000 (06:43 +0000)]
added tdb_lock_bystring() and tdb_unlock_bystring()
(This used to be commit ca443210c84575d39e60c38a7a12d037386d0e38)

21 years agodon't use gets() !
Andrew Tridgell [Tue, 10 Oct 2000 05:05:35 +0000 (05:05 +0000)]
don't use gets() !
(This used to be commit e4ea0a5975d3539803c78cac2229550a6e89c4b4)

21 years agoFixes to allow wins.c to compile to allow building of
John Terpstra [Mon, 9 Oct 2000 21:44:00 +0000 (21:44 +0000)]
Fixes to allow wins.c to compile to allow building of
(This used to be commit 3fb2e94c4430c570639c0e4d1caeed3a19bbd09b)

21 years agoI introduced a bug in my last commits. Hopefully nobody noticed :-)
Jean-François Micouleau [Mon, 9 Oct 2000 14:41:19 +0000 (14:41 +0000)]
I introduced a bug in my last commits. Hopefully nobody noticed :-)

(This used to be commit 044246fe7e40d83673120dc14b5d6572e6c23142)

21 years agoMissing conn parameter missed in vfs rewrite.
Jeremy Allison [Mon, 9 Oct 2000 00:06:30 +0000 (00:06 +0000)]
Missing conn parameter missed in vfs rewrite.
(This used to be commit 4eecc63be5bd11590972ee4f446b7a80d46a713b)

21 years agosys_popen got damaged when converted from FILE * to int fd I think.
Jeremy Allison [Sun, 8 Oct 2000 21:21:27 +0000 (21:21 +0000)]
sys_popen got damaged when converted from FILE * to int fd I think.
Patrick Powell kindly pointed out the bug.
(This used to be commit 1f156b2420b7ecf1266e650efc3cee55362e29dd)

21 years agomore cleanup of samr
Jean-François Micouleau [Sat, 7 Oct 2000 17:32:40 +0000 (17:32 +0000)]
more cleanup of samr

(This used to be commit c49cc884458d6efa0f7f4b1e40f7d98d84836e77)

21 years agoadded samr_set_user_info and info_2.
Jean-François Micouleau [Sat, 7 Oct 2000 15:56:36 +0000 (15:56 +0000)]
added samr_set_user_info and info_2.
cleanup of create_user
cleanup of rid/sid mix in samr. now we only have sid.

some prs_align() missing in parse_samr.c

a small debug change in srv_pipe.c

You still can't change a user's password in this commit.
Will be availble in the next one.

(This used to be commit b655bc281fa183b1827a946ada1fcf500fb93aea)

21 years agoEnsure browse.dat is written and read in UNIX character set format.
Jeremy Allison [Sat, 7 Oct 2000 01:15:07 +0000 (01:15 +0000)]
Ensure browse.dat is written and read in UNIX character set format.
(This used to be commit 279d0ec656b03f9266e38b013f16b69e7571c0d5)

21 years agoIntegrated support for NT and OS/2 lpq parsing. Code from
Jeremy Allison [Sat, 7 Oct 2000 00:48:27 +0000 (00:48 +0000)]
Integrated support for NT and OS/2 lpq parsing. Code from
Jim McDonough
Infoprint Manager Development
Linux Technology Center
IBM Boulder

(This used to be commit d9eedd5db1728be8e23d73c954db13bbbcadf3fb)

21 years agoFix for yp_get_default_domain from Neil Hoggarth <>
Jeremy Allison [Sat, 7 Oct 2000 00:26:04 +0000 (00:26 +0000)]
Fix for yp_get_default_domain from Neil Hoggarth <>
(This used to be commit 44ed8abb2a9f2197b18565dd23a2795faf8fe241)

21 years agoFix for printf attribute from Mattias Gronlund <>
Jeremy Allison [Fri, 6 Oct 2000 23:35:55 +0000 (23:35 +0000)]
Fix for printf attribute from Mattias Gronlund <>
Added "codepage directory" patch from
(This used to be commit e49566c2e21fcd16980e5110495645c5ae5a36da)

21 years agoAdded Herb's fixes to HEAD.
Jeremy Allison [Fri, 6 Oct 2000 23:01:47 +0000 (23:01 +0000)]
Added Herb's fixes to HEAD.
(This used to be commit 4862d2ab1163310d844b929fb17239b4f4cb1a99)

21 years agoFix from for Linux ECONREFUSED async errors on Linux.
Jeremy Allison [Fri, 6 Oct 2000 22:37:42 +0000 (22:37 +0000)]
Fix from for Linux ECONREFUSED async errors on Linux.
(This used to be commit dd804fdb96ff49645647787c197a61a6515a474d)

21 years agoPrint socket options - patch from Dave Collier-Brown @ Sun.
Jeremy Allison [Fri, 6 Oct 2000 21:12:25 +0000 (21:12 +0000)]
Print socket options - patch from Dave Collier-Brown @ Sun.
(This used to be commit c18d6f8701c8e6ca03f9fff79cf28c842b3b5ff9)

21 years agoFixed error return messages needed for NTTrans CreateDirectory.
Jeremy Allison [Fri, 6 Oct 2000 20:34:14 +0000 (20:34 +0000)]
Fixed error return messages needed for NTTrans CreateDirectory.
This patch allows the standard W2k recursive mkdir to work against
(This used to be commit 947102784360c65d51441457bb54aa28d2b4452d)

21 years agoProto update. Also fix from John Reilly @ HP for not showing APW with W2K.
Jeremy Allison [Fri, 6 Oct 2000 20:03:17 +0000 (20:03 +0000)]
Proto update. Also fix from John Reilly @ HP for not showing APW with W2K.
(This used to be commit 698288cb9de316527c0c2a271e18c920578f9930)

21 years agoHerb's warning fixes. Also the POSIX locking fix.
Jeremy Allison [Fri, 6 Oct 2000 18:13:52 +0000 (18:13 +0000)]
Herb's warning fixes. Also the POSIX locking fix.
We now use our own vfs layer to do get/set acl calls (hurrah!).
(This used to be commit dfe77c7046cbd65ee52aea7439f21503c1eac41d)

21 years agoglobal_myname is actually a pstring.
Tim Potter [Fri, 6 Oct 2000 04:36:05 +0000 (04:36 +0000)]
global_myname is actually a pstring.
(This used to be commit e451fd346105d5d34354ff9141d445b5f1a82e0a)

21 years agoInlined many of the vfs_XXX calls as macros for speed.
Jeremy Allison [Fri, 6 Oct 2000 03:41:48 +0000 (03:41 +0000)]
Inlined many of the vfs_XXX calls as macros for speed.
(This used to be commit 0811d080abd374f47c7c3c8a1ef007e443e5b79c)

21 years agoRestructuring of vfs layer to include a "this" pointer - can be an fsp or
Jeremy Allison [Fri, 6 Oct 2000 03:21:49 +0000 (03:21 +0000)]
Restructuring of vfs layer to include a "this" pointer - can be an fsp or
a conn struct depending on the call.
We need this to have a clean NT ACL call interface.
This will break any existing VFS libraries (that's why this is pre-release
Andrew gets credit for this one :-) :-).

In addition - added Herb's WITH_PROFILE changes - Herb - please examine
the changes I've made to the smbd/reply.c code you added. The original
code was very ugly and I have replaced it with a
START_PROFILE(x)/END_PROFILE(x) pair using the preprocessor.
Please check this compiles ok with the --with-profile switch.
(This used to be commit b07611f8159b0b3f42e7e02611be9f4d56de96f5)

21 years agoFix for null passwords being allowed bug.
Jeremy Allison [Thu, 5 Oct 2000 22:51:57 +0000 (22:51 +0000)]
Fix for null passwords being allowed bug.
(This used to be commit d4d55488397832df35b558564c263a307b0bb629)

21 years agoFixes from Damian at Cisco to tidy up some tdbtool issues.
Jeremy Allison [Thu, 5 Oct 2000 22:19:34 +0000 (22:19 +0000)]
Fixes from Damian at Cisco to tidy up some tdbtool issues.
(This used to be commit 623bfa6c935e2e3acb3145bfbd490758b34d2c70)

21 years agoVector get_nt_acl/set_nt_acl via vfs. POSIX ACL support should be added
Jeremy Allison [Thu, 5 Oct 2000 19:04:41 +0000 (19:04 +0000)]
Vector get_nt_acl/set_nt_acl via vfs. POSIX ACL support should be added
above this layer.
(This used to be commit b90af886a951b7b049ed7a42e6d99c332e43897b)

21 years agoHerb's fixes for profiling & compiler warnings.
Jeremy Allison [Thu, 5 Oct 2000 18:50:18 +0000 (18:50 +0000)]
Herb's fixes for profiling & compiler warnings.
(This used to be commit 7914e9351abb5271ebb4990c3b1fe495d15a4eda)

21 years agosomeone forgot to update proto.h :-)
Jean-François Micouleau [Thu, 5 Oct 2000 12:43:37 +0000 (12:43 +0000)]
someone forgot to update proto.h :-)

(This used to be commit 3664e80fcd292ee8ba20861b01945d7db59858a9)

21 years agofixing prs_unistr2(). For the special case of an empty (but existing)
Jean-François Micouleau [Thu, 5 Oct 2000 12:41:31 +0000 (12:41 +0000)]
fixing prs_unistr2(). For the special case of an empty (but existing)

(This used to be commit 83bfe94771e0afbffbb4a1a741cd9983ef612362)

21 years agoSpelling flames. (-:
Tim Potter [Thu, 5 Oct 2000 03:35:37 +0000 (03:35 +0000)]
Spelling flames.  (-:
(This used to be commit 178e6971005505d2debd74b761ecfaa982336a53)

21 years agoAdded uid and gid to push_sec_ctx() debug.
Tim Potter [Thu, 5 Oct 2000 03:28:58 +0000 (03:28 +0000)]
Added uid and gid to push_sec_ctx() debug.
(This used to be commit 2817b6cc8af3edbaa63b5db67689ab94cb240d4f)

21 years agoFixed compiler warnings.
Tim Potter [Thu, 5 Oct 2000 03:14:28 +0000 (03:14 +0000)]
Fixed compiler warnings.
(This used to be commit ec7f7e350dc1dfa757436cb0efe777c3e0719877)

21 years agoMade re-init of stat cache explicit rather than being hidden.
Jeremy Allison [Wed, 4 Oct 2000 22:37:33 +0000 (22:37 +0000)]
Made re-init of stat cache explicit rather than being hidden.
(This used to be commit b0c40236bb4381fec0e812c20e5f8c09ebf005f9)

21 years agoAdding Herb's compile warning fixes to HEAD.
Jeremy Allison [Wed, 4 Oct 2000 01:03:23 +0000 (01:03 +0000)]
Adding Herb's compile warning fixes to HEAD.
(This used to be commit d131ad1ce3f6e72e295f865a463f8dcbfa6f8d42)

21 years agoFixes for the fact that UNICODE sizes are no always 2*no of chars when
Jeremy Allison [Tue, 3 Oct 2000 19:15:05 +0000 (19:15 +0000)]
Fixes for the fact that UNICODE sizes are no always 2*no of chars when
in multibyte codepages. Fix from Hiroshi MIURA, Samba User Group Japan staff.
(This used to be commit f2f373df67a3c6b0bd431c19e3494d45ef0a263c)

21 years agoFixes from Herb - compiler warnings.
Jeremy Allison [Tue, 3 Oct 2000 18:29:12 +0000 (18:29 +0000)]
Fixes from Herb - compiler warnings.
(This used to be commit d9d3668fa322cbed36ca3393d8268bf0e5255e8d)

21 years agoutf-8 and EUC3 patch from Hiroshi Miura Samba User Group Japan staff.
Jeremy Allison [Tue, 3 Oct 2000 02:12:14 +0000 (02:12 +0000)]
utf-8 and EUC3 patch from Hiroshi Miura Samba User Group Japan staff.
mkdir high bits patch from Robert Dahlem" <>.
(This used to be commit b40191d27180ab1e59935086073c4d312552f717)

21 years agoMemleak fix for cache code.
Jeremy Allison [Mon, 2 Oct 2000 21:03:46 +0000 (21:03 +0000)]
Memleak fix for cache code.
(This used to be commit 1ebe54666b0fc6f224f17036063dfe0ef7ec9147)

21 years agoAdded debug so if zero length messages get sent we successfully remove
Jeremy Allison [Mon, 2 Oct 2000 19:28:26 +0000 (19:28 +0000)]
Added debug so if zero length messages get sent we successfully remove
them (this can happen if smbd processes are shut down at the wrong time).
(This used to be commit c1de97f96b8c5ad8e5f01a0d17c6387733769442)

21 years agoMissing null termination on printer changenotify message caused insure
Jeremy Allison [Fri, 29 Sep 2000 21:15:45 +0000 (21:15 +0000)]
Missing null termination on printer changenotify message caused insure
(This used to be commit 3733d29ce678c71ef2ee8b600e547765d8d8ea9e)

21 years agoutils/smbcontrol.c: Fixes from Herb for interactive use.
Jeremy Allison [Fri, 29 Sep 2000 20:08:00 +0000 (20:08 +0000)]
utils/smbcontrol.c: Fixes from Herb for interactive use.
printing/nt_printing.c: No C++ comments please :-).
(This used to be commit dd9f668108215f18240458fc33bf872a6fc9e6be)

21 years agonew man pages
Herb Lewis [Fri, 29 Sep 2000 19:50:57 +0000 (19:50 +0000)]
new man pages
(This used to be commit 8a7d6c8e91ecd57f2693be7d697d8231c8d339a4)

21 years agonew prototypes
Andrew Tridgell [Fri, 29 Sep 2000 04:47:18 +0000 (04:47 +0000)]
new prototypes
(This used to be commit 3e77bf2117c43d3202774df24debc91f61d88733)

21 years agoadded a hack to get 64 bit locking working with the broken fcntl()
Andrew Tridgell [Fri, 29 Sep 2000 04:45:00 +0000 (04:45 +0000)]
added a hack to get 64 bit locking working with the broken fcntl()
call in glibc 2.1.95. This hack only gets enabled if you define
(This used to be commit d8b9ec741cc57b5f3dd1b3ef782a7baed402beaa)

21 years agouse the 64 bit locking interface in locktest
Andrew Tridgell [Fri, 29 Sep 2000 04:43:07 +0000 (04:43 +0000)]
use the 64 bit locking interface in locktest
(This used to be commit 1ece7f1ffd7d0b61d6acea03819fb857ea556b4b)

21 years agofixed a harmess mixup of bitops and a boolean
Andrew Tridgell [Fri, 29 Sep 2000 04:42:29 +0000 (04:42 +0000)]
fixed a harmess mixup of bitops and a boolean
(This used to be commit 0e0f3dc577ceab540be6505a86697b14a2136b9f)

21 years agoadded cli_lock64() and cli_unlock64()
Andrew Tridgell [Fri, 29 Sep 2000 04:41:52 +0000 (04:41 +0000)]
added cli_lock64() and cli_unlock64()
(This used to be commit 91f0a3cc2f59a49f6ce8550e7d07b9b01e0b285f)

21 years agoMissing from HEAD and 2.2 - terminal server reg config.
Jeremy Allison [Thu, 28 Sep 2000 22:17:41 +0000 (22:17 +0000)]
Missing from HEAD and 2.2 - terminal server reg config.
(This used to be commit f5b5b9f287de343d9eb61817ef99499408f1a019)

21 years agoFix from John Reilly for forms ordering problems.
Jeremy Allison [Thu, 28 Sep 2000 21:33:08 +0000 (21:33 +0000)]
Fix from John Reilly for forms ordering problems.
(This used to be commit 837839eb3d0fae7fef5d61593862a2c1b00d6a07)

21 years agoRemoved a line by mistake...
Jeremy Allison [Thu, 28 Sep 2000 20:58:15 +0000 (20:58 +0000)]
Removed a line by mistake...
(This used to be commit dcbdff7a4d6442ca8f9e1aa6fcf65c196c2f22bf)

21 years agoAdded comment on JF's new code. Removed ifdef in passdb/smbpass.c as this
Jeremy Allison [Thu, 28 Sep 2000 20:36:28 +0000 (20:36 +0000)]
Added comment on JF's new code. Removed ifdef in passdb/smbpass.c as this
was not correct.
(This used to be commit 1a3f7ecde2ca031b2f93a079f75822354fe241a0)

21 years agofixed samr_create_user(). we now correctly parse the query and the reply.
Jean-François Micouleau [Thu, 28 Sep 2000 17:35:03 +0000 (17:35 +0000)]
fixed samr_create_user(). we now correctly parse the query and the reply.
And we create the disabled account. That means we can create user and
trust accounts remotely !

ifdef out a return in passdb/smbpass.c. I think I didn't break any
security. Jeremy could you check if I didn't make any mistakes ???

(This used to be commit 416be1b64f366c8b859f25856fce2467ec0446d9)

21 years agoRemoved annoying unecessary debug message.
Tim Potter [Thu, 28 Sep 2000 00:07:19 +0000 (00:07 +0000)]
Removed annoying unecessary debug message.
(This used to be commit b1a893b74114ee4ab6a295ac0cb0e8fdccda3f53)

21 years agoFixed stupid introduced bug found by "Jim McDonough/Boulder/IBM" <>.
Jeremy Allison [Wed, 27 Sep 2000 21:57:38 +0000 (21:57 +0000)]
Fixed stupid introduced bug found by "Jim McDonough/Boulder/IBM" <>.
(This used to be commit 563f8b09a810446c658bf58303b5fe998d27bec9)

21 years agoRestructuring of the code to remove dos_ChDir/dos_GetWd and re-vector them
Jeremy Allison [Wed, 27 Sep 2000 19:09:59 +0000 (19:09 +0000)]
Restructuring of the code to remove dos_ChDir/dos_GetWd and re-vector them
through the VFS. All file access/directory access code in smbd should now
go via the vfs. Added vfs_chown/vfs_chmod calls. Still looking at vfs_get_nt_acl()
vfs_set_nt_acl() call API design.
(This used to be commit f96625ec124adb6e110dc54632e006b3620a962b)

21 years agosamr unknown 0x32 is in fact samr create user.
Jean-François Micouleau [Wed, 27 Sep 2000 13:02:57 +0000 (13:02 +0000)]
samr unknown 0x32 is in fact samr create user.
so renamed and tidy up of the server function.

(This used to be commit 0f707ac1fb5685b800d6599b9074ec1d4e65b1c1)

21 years agoignore smbcontrol in bin directory
Jean-François Micouleau [Wed, 27 Sep 2000 11:25:16 +0000 (11:25 +0000)]
ignore smbcontrol in bin directory

(This used to be commit d56cc6ebe7fe546c1fe28f6f75d1cc0702694972)

21 years agofix for IRIX 6.2 compiler error
Herb Lewis [Tue, 26 Sep 2000 23:28:04 +0000 (23:28 +0000)]
fix for IRIX 6.2 compiler error
(This used to be commit eecee22bf1ab6e22e5e989b51d522fcf587aa48c)

21 years agofix for IRIX compiler error messages
Herb Lewis [Tue, 26 Sep 2000 18:48:13 +0000 (18:48 +0000)]
fix for IRIX compiler error messages
(This used to be commit f2549db1ce6527c3e378e9f9210c70be5de93762)

21 years agofixed IRIX compiller error message
Herb Lewis [Tue, 26 Sep 2000 14:48:52 +0000 (14:48 +0000)]
fixed IRIX compiller error message
(This used to be commit 908da12d5f24ea076db6627ef0d4407e1cdcd014)

21 years agobroadcast printer notify message to all clients. We now have printer
Jean-François Micouleau [Tue, 26 Sep 2000 10:15:12 +0000 (10:15 +0000)]
broadcast printer notify message to all clients. We now have printer
notification as on NT.

Andrew, your message passing code is cool :-)

(This used to be commit 0374bc4b5f56d0fab3f7310e13cb71b5a71f9112)

21 years agoadded NEGNOWAIT. sent to
Luke Leighton [Tue, 26 Sep 2000 05:44:42 +0000 (05:44 +0000)]
added NEGNOWAIT.  sent to
(This used to be commit b21179331802aace566671dcff6db22cdf4b3e81)

21 years agoChanges from John Reilly to add a parameter "show add printer wizard" that
Jeremy Allison [Tue, 26 Sep 2000 00:54:18 +0000 (00:54 +0000)]
Changes from John Reilly to add a parameter "show add printer wizard" that
allows Samba to turn off the display of APW (hmmm. This should probably
be a share specific parameter, I'll fix that in another commit).
Also a few small changes to JF's code to fix compiler warnings about
missing return statements and also change '//' comments (C++) to /* .. */
comments (C).
(This used to be commit 0a9ccc99b335650d235eb747d803d059f7828fd7)

21 years agoprinter notify code.
Jean-François Micouleau [Mon, 25 Sep 2000 21:05:18 +0000 (21:05 +0000)]
printer notify code.

It only sends notifies to one client. The broadcasting notify code will
code soon.

(This used to be commit 4c63c9185887c64e57d901e82a4a16a83522c898)

21 years agoOptimization (noticed by bloody Andrew :-) to stop directory scan ever
Jeremy Allison [Thu, 21 Sep 2000 23:39:19 +0000 (23:39 +0000)]
Optimization (noticed by bloody Andrew :-) to stop directory scan ever
being done if any of the directory timestamps were changed.
(This used to be commit 915152ed981e8e537d15fd4b80b3c3d10ee86bff)

21 years agoAdding fix from Jim Vopni <> to ensure jobs are
Jeremy Allison [Thu, 21 Sep 2000 21:44:15 +0000 (21:44 +0000)]
Adding fix from Jim Vopni <> to ensure jobs are
closed before a printer is closed/deleted.
(This used to be commit f0c16f7228d6923b11ac521aef986960a1d0c0b4)