1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

2875 Commits

Author SHA1 Message Date
Jeremy Allison
bcb87271d6 r13563: Fix bug #3526 found and diagnosed by corinna@vinschen.de.
trans2findfirst recognises two info levels *not* recognised
by trans2findnext. Add them. Needed for 3.0.21c.
Jeremy.
2007-10-10 11:10:14 -05:00
Jeremy Allison
c8185e7f94 r13559: Fix bug #3522 reported by Sandeep Tamhankar <sandman@electric-cloud.com>.
mkdir foo returns the wrong error message when file foo exists.
Jeremy.
2007-10-10 11:10:14 -05:00
James Peach
ed619421de r13500: Fix ordering of FD_* arguments. 2007-10-10 11:10:07 -05:00
Jeremy Allison
006cf9c365 r13498: Fix the kernel oplocks code for IRIX. Should fix #3515.
Jeremy.
2007-10-10 11:10:07 -05:00
Jeremy Allison
a28bc614a0 r13497: Fix #3508 from jason@ncac.gwu.edu
Jeremy.
2007-10-10 11:10:07 -05:00
Volker Lendecke
bb40e544de r13494: Merge the stuff I've done in head the last days.
Volker
2007-10-10 11:10:06 -05:00
James Peach
a78d94f539 r13484: Add missing semi-colon. 2007-10-10 11:10:05 -05:00
James Peach
1dce945ccb r13482: Push the FAM notification file descriptor into the select
set to avoid unnecessary polling.
2007-10-10 11:10:05 -05:00
Günther Deschner
58baf718be r13444: Add REJECT_REASON_OTHER for samr_chgpasswd_user3
Guenther
2007-10-10 11:10:03 -05:00
Günther Deschner
40a21776a7 r13443: Fix the build.
Guenther
2007-10-10 11:10:03 -05:00
Günther Deschner
f60eddc0a4 r13442: Implement samr_chgpasswd_user3 server-side.
Guenther
2007-10-10 11:10:03 -05:00
Jeremy Allison
07132d8796 r13423: Write wrapper functions (and configure tests) so we can
always assume we can get a struct timespec out of a stat
struct. This will allow us to portably move to nsec timestamps
on files and directories in the file server code in future.
Jeremy.
2007-10-10 11:10:01 -05:00
Gerald Carter
5d373133cb r13318: remove an unused file 2007-10-10 11:06:24 -05:00
Gerald Carter
17e63ac4ed r13316: Let the carnage begin....
Sync with trunk as off r13315
2007-10-10 11:06:23 -05:00
Jeremy Allison
50c894a6e9 r13314: This code has been causing problems since 1.9.x I think.
Remove check_for_pipe() - Volker was completely correct.
If it gets re-added it will be in a old open call path, not
in the generic code path.
Jeremy.
2007-10-10 11:06:23 -05:00
Jeremy Allison
e2fc8a196a r13299: From testing W2K3 and W2K the delete on close bit seems to be always
honored (ie. the file gets deleted) for derectories when set at open
time - even though it doesn't show in the qfileinfo call. This is not
true of files.... (if anyone from the EU is listening, it's stuff like
this that makes CIFS non-documentable :-).
Jeremy.
2007-10-10 11:06:22 -05:00
Jeremy Allison
23f16cbc2e r13293: Rather a big patch I'm afraid, but this should fix bug #3347
by saving the UNIX token used to set a delete on close flag,
and using it when doing the delete. libsmbsharemodes.so still
needs updating to cope with this change.
Samba4 torture tests to follow.
Jeremy.
2007-10-10 11:06:21 -05:00
Volker Lendecke
b02b1d3ef3 r13291: NT checks the minimum password age dynamically. That means we have to ignore
the sambapwdmustchange field if we can access the corresponding account
policy and calculate it dynamically based on the pwdlastset field.

Volker
2007-10-10 11:06:21 -05:00
Jeremy Allison
9f4a9c70fa r13274: Fix for bug #3467. Not a show stopper.
jason qian <jason@infrant.com> was a *fantastic*
help in tracking this down.
Jeremy.
2007-10-10 11:06:20 -05:00
Gerald Carter
51fe6bd845 r13233: build fixes for smbmnt; remove unused variable; ready to ship 3.0.21b now 2007-10-10 11:06:19 -05:00
Derrell Lipman
f2a24de769 r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500
lp_load() could not be called multiple times to modify parameter settings based
 on reading from multiple configuration settings.  Each time, it initialized all
 of the settings back to their defaults before reading the specified
 configuration file.

 This patch adds a parameter to lp_load() specifying whether the settings should
 be initialized.  It does, however, still force the settings to be initialized
 the first time, even if the request was to not initialize them.  (Not doing so
 could wreak havoc due to uninitialized values.)
2007-10-10 11:06:18 -05:00
Jeremy Allison
837e7ea7e4 r13198: Fix issues exposed by Jerry's testing on 64-bit Solaris
(I hope). Separate 3.0.21b patch sent to Jerry.
Jeremy.
2007-10-10 11:06:17 -05:00
Jeremy Allison
fa5fab313e r13192: Fix up alignment issues when printing share mode
entries. Add paranioa to debug so we know when an
entry is unused.
Jeremy.
2007-10-10 11:06:16 -05:00
Jeremy Allison
3f5860b8fb r13125: Very well spotted crash bug fix for #3343 from
SATOH Fumiyasu <fumiyas@miraclelinux.com>
Jerry please pick this up for 3.0.21b.
Jeremy.
2007-10-10 11:06:14 -05:00
Jeremy Allison
1ca4abffd0 r13095: Fix warnings assigning int to a size_t.
Jeremy.
2007-10-10 11:06:13 -05:00
James Peach
652b511ff2 r13027: Support file change notifications from FAM. 2007-10-10 11:06:11 -05:00
Jeremy Allison
f8d09d111c r13023: Ensure we notice if we exit due to guest user setup fail.
Jeremy.
2007-10-10 11:06:10 -05:00
Jeremy Allison
dd185c7aa8 r12956: Fix for bug #3035 from SATOH Fumiyasu <fumiyas@miraclelinux.com>
On a Windows share, a file with read-only dosmode can be opened with
DELETE_ACCESS. But on a Samba share (delete readonly = no), it
fails with NT_STATUS_CANNOT_DELETE error.

This semantic causes a problem that a user can not
rename a file with read-only dosmode on a Samba share
from a Windows command prompt (i.e. cmd.exe, but can rename
from Windows Explorer).

Jeremy.
2007-10-10 11:06:09 -05:00
Jeremy Allison
5fc0ef8087 r12938: Fix for #3408 (change password fails) from William Jojo <jojowil@hvcc.edu>.
Jeremy.
2007-10-10 11:06:08 -05:00
Gerald Carter
c08bc30698 r12916: use rpcstr_pull() instead of unistr_to_ascii() when validating share names 2007-10-10 11:06:07 -05:00
Jeremy Allison
c2476b2f75 r12885: Oops. Missed last part of correct patch for #3348.
Caught by Samba4 oplock torture tester.
Jeremy.
2007-10-10 11:06:05 -05:00
Jeremy Allison
d01824b785 r12877: Stop passing structs around in smb messages, instead
always linearize into little-endian. Should fix all
Solaris issues with this, plus provide a cleaner base
moving forward for cluster-aware Samba where smbd's
can communicate across different compilers/architectures
(eventually these message will have to go cross-machine).
Jeremy.
2007-10-10 11:06:05 -05:00
Volker Lendecke
2c3d5c029a r12735: After talking to Tridge and Jeremy... This needs to be made more generic
before it goes in.

Volker
2007-10-10 11:06:02 -05:00
Volker Lendecke
2253b17a1a r12721: GPFS 2.4 on Linux will contain some windows semantics, ie share modes and
oplocks across the cluster. Adapt Samba to it.

The gpfs API is called via libgpfs.so. This code is written with dlopen(), so
that you can compile on a system with gpfs installed and later on run on
systems without gpfs available.

So to actually make Samba call gpfs share mode calls you need to compile with
gpfs.h and libgpfs.so around and set 'gpfs share = yes' on the shares you
export from GPFS.

Volker
2007-10-10 11:06:01 -05:00
Jeremy Allison
4473ac4ef9 r12713: Remove use of uint8_t -> uint8.
Jeremy.
2007-10-10 11:06:01 -05:00
Jeremy Allison
1032aa890f r12653: Patch from SATOH Fumiyasu <fumiyas@miraclelinux.com>
for bug #3348. Don't assume owning sticky bit
directory means write access allowed.
Jeremy.
2007-10-10 11:06:00 -05:00
Jeremy Allison
addb509529 r12564: Ensure load_case_tables is always done first.
Jeremy.
2007-10-10 11:05:59 -05:00
Jeremy Allison
c2752347eb r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")
and replace calls to isupper/islower/toupper/tolower with
ASCII equivalents (mapping into _w variants).
Jeremy.
2007-10-10 11:05:58 -05:00
Jeremy Allison
2187502732 r12491: End profile fixes from SATOH Fumiyasu <fumiya@samba.gr.jp>.
Jeremy.
2007-10-10 11:05:58 -05:00
Volker Lendecke
dd39a37f8e r12477: Remove a gcc -O6 warning 2007-10-10 11:05:57 -05:00
Volker Lendecke
040eda6bf0 r12460: Fixes for bug 3349 2007-10-10 11:05:56 -05:00
Jeremy Allison
8680eebbba r12376: Second patch from Martin Koeppe <mkoeppe@gmx.de>
for #3287.
Jeremy.
2007-10-10 11:05:54 -05:00
Volker Lendecke
39041297c7 r12312: Reformatting and a trivial change: is_share_read_only_for_user only uses
conn->service, so there's no point in passing down the whole conn struct.

Volker
2007-10-10 11:05:53 -05:00
Volker Lendecke
23f5be1dcb r12311: Reformatting 2007-10-10 11:05:53 -05:00
Volker Lendecke
97acfa12e5 r12308: Reformatting 2007-10-10 11:05:53 -05:00
Volker Lendecke
ef4d9d96de r12307: Reformatting plus a trivial if/else simplification. There's no point in doing
an else branch that only returns NULL.

Volker
2007-10-10 11:05:53 -05:00
Volker Lendecke
f574e980aa r12305: Reformatting 2007-10-10 11:05:52 -05:00
Jeremy Allison
0c7b8a7637 r12279: unix_mask_match has been broken for *ever*... (How).
Ensure it returns a BOOL.
Jerry (and anyone else) please check this, I think
all uses are now correct but could do with another
set of eyes. Essential for 3.0.21 release.
Jeremy.
2007-10-10 11:05:51 -05:00
Jeremy Allison
e53574d0b4 r12250: Patch from Martin Koeppe <mkoeppe@gmx.de> for #3287
to make the dev/inode numbers match what SFU expects.
If we're using 8 byte inodes we'll lose the top 4 bytes
and replace them with a dev_t instead, but this seem
reasonable to ensure uniqueness.
Jeremy.
2007-10-10 11:05:51 -05:00
Jeremy Allison
855f5f8c32 r12234: Reduce the race condition for renames by holding the lock
longer. Instigated by complaints on the fix for #3303 from
SATOH Fumiyasu <fumiyas@miraclelinux.com>.
Jeremy.
2007-10-10 11:05:50 -05:00