1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

18240 Commits

Author SHA1 Message Date
Volker Lendecke
21cc389545 r20606: bad_path == True has been covered further up in reply_setatr.
I'm checking in micro-steps to make them independently checkable. This code
just very severely needs cleanup, but I don't want to break anything. So, be
patient with me, please :-)

Volker
(This used to be commit c16775486b)
2007-10-10 12:16:57 -05:00
Volker Lendecke
ccc54da805 r20605: Simplify logic in reply_setatr slightly
(This used to be commit f19db8f33e)
2007-10-10 12:16:57 -05:00
Volker Lendecke
395d304f22 r20604: Fix two memleaks, Coverity ID 337, merge to 3_0_24
(This used to be commit 44f9d25a90)
2007-10-10 12:16:57 -05:00
Volker Lendecke
3ab9f619d8 r20603: Slightly simplify logic
(This used to be commit e4dea0e647)
2007-10-10 12:16:57 -05:00
Volker Lendecke
c79be5713a r20602: Fix coverity ID 339. SMB_ASSERT does not panic without -DDEVELOPER.
Volker
(This used to be commit 33b5950bec)
2007-10-10 12:16:57 -05:00
Volker Lendecke
b2efff8fe5 r20597: Survive some of the notify mask tests.
(This used to be commit e4a2e63272)
2007-10-10 12:16:57 -05:00
Volker Lendecke
bb357a1617 r20589: Re-add lost bad_path handling, sorry.
(This used to be commit 244f96388c)
2007-10-10 12:16:56 -05:00
Jeremy Allison
0a8e3fd236 r20558: Refactor rmdir_internals to use early termination rather
than lots of indented code. Change recursive_rmdir()
to return the smbd standards of True on success, False
on fail (it was doing the reverse, which was very confusing).
Jeremy.
(This used to be commit 27dc5bebda)
2007-10-10 12:16:56 -05:00
Volker Lendecke
18bf0b29b4 r20546: Fix some IBM checker errors
(This used to be commit 8f67efd582)
2007-10-10 12:16:56 -05:00
Volker Lendecke
1307337aaf r20544: Change copy_file() to return NTSTATUS. This is in preparation of turning
close_file() to NTSTATUS as well.

I'm not sure I got all the error codes right, but as I've never come across a
smb_copy() call in all my Samba work, I'm leaving it at that. If I'm
absolutely bored, I will write a thorough torture test.

As far as I can see, Samba4 even does not have a libcli implementation for
it...  :-)

Volker
(This used to be commit 5ebdf02ba1)
2007-10-10 12:16:56 -05:00
Volker Lendecke
84da72860e r20542: Make close_remove_share_mode retun NTSTATUS. Not that anybody cares yet...
(This used to be commit c899577153)
2007-10-10 12:16:55 -05:00
Volker Lendecke
f933a9abc2 r20541: Fix some obvious glitches in wait_for_aio_completion. Hmmm. It seems
reply_close() at its heart is going to be an async call :-)

Volker
(This used to be commit 36f60407ae)
2007-10-10 12:16:55 -05:00
Günther Deschner
f3a85fb152 r20536: In the offline PAM session close case the attempt to delete a
non-existing krb5 credential cache should not generate an error.

Guenther
(This used to be commit 11c6f573af)
2007-10-10 12:16:55 -05:00
Jeremy Allison
b1fed47440 r20535: Fix make install to work when root doesn't have
write access into the source tree (like when your
directory is nfs mounted for example....).
Jeremy.
(This used to be commit 7dcb61d1b2)
2007-10-10 12:16:55 -05:00
Jeremy Allison
2b1760297f r20532: From Volker...
"smbcli_setattr("") always returns ACCESS_DENIED, test extension to follow.

Merge to 3.0.24?"

Yep (with slight optimization).

Jeremy.
(This used to be commit dcc7bca1ad)
2007-10-10 12:16:55 -05:00
Jeremy Allison
e5e0f51b83 r20530: Don't want this call to get inadvertently re-added :-).
Jeremy.
(This used to be commit 68c4fbcf33)
2007-10-10 12:16:54 -05:00
Volker Lendecke
2276cd666f r20525: Closing a dir with del-on-close set requires the same as files: Don't actually
unlink/rmdir if another process still has it open.

Jeremy, this is a potential merger to 3.0.24.

Volker
(This used to be commit 8e1e896b02)
2007-10-10 12:16:54 -05:00
Volker Lendecke
3a9133dd06 r20524: Simplify logic of close_remove_share_mode().
Volker
(This used to be commit ade90dbf0c)
2007-10-10 12:16:54 -05:00
Günther Deschner
fd7bd254e1 r20512: Fix typo.
Guenther
(This used to be commit 36bd5cb21b)
2007-10-10 12:16:54 -05:00
Volker Lendecke
bc20aac121 r20507: smbcli_setattr("") always returns ACCESS_DENIED, test extension to follow.
Merge to 3.0.24?

Volker
(This used to be commit f2563ac98f)
2007-10-10 12:16:54 -05:00
Volker Lendecke
bef14208ef r20503: And one more 64-bit warning
(This used to be commit 7bcde1069e)
2007-10-10 12:16:54 -05:00
Volker Lendecke
801cf72cb8 r20502: Activate RAW-RENAME, my Linux box passes this
(This used to be commit 56c8d2cfed)
2007-10-10 12:16:53 -05:00
Volker Lendecke
a328e2f997 r20501: Check in config.h fix from Michael Adam <ma@sernet.de>
(This used to be commit d10dd47fb8)
2007-10-10 12:16:53 -05:00
James Peach
bf4e44d646 r20500: Fix compiler warnings.
(This used to be commit 9a790ee1fc)
2007-10-10 12:16:53 -05:00
Volker Lendecke
94a7500823 r20499: Activate RAW-OPEN in the build farm
(This used to be commit a0d5de61a1)
2007-10-10 12:16:53 -05:00
Volker Lendecke
8cc702bf5a r20498: Two 64-bit warnings
(This used to be commit 382827ebac)
2007-10-10 12:16:53 -05:00
Volker Lendecke
9985f25f00 r20496: Some changes to make Samba3 the RAW-OPEN test. Checking in to both 3_0 and
3_0_24 because I was explicitly asked to, although this needs close
review. Jeremy, I'm sure you will check this thoroughly :-)

In reply_open_and_X the separate "size" variable kills the calculation of the
SPARSE flag returned to the client in the attrib field. In getpathinfo we do
it correctly, and RAW-OPEN (correctly) complains about the difference.

Add the "set the write time" to mknew and create.

For trans2open we were missing the "ofun == 0" ->
NT_STATUS_OBJECT_NAME_COLLISION case, and we dropped the status returned in
favor of ACCESS_DENIED once too many.

Last change is a fix to trans2open: We were returning the attributes given by
the client, not the attributes of the new file.

Volker
(This used to be commit 84e6889632)
2007-10-10 12:16:53 -05:00
Gerald Carter
3063738c24 r20489: Missed patch ofthe forest_name patch for lookupname
(This used to be commit 25c4ebb55f)
2007-10-10 12:16:52 -05:00
Gerald Carter
b2317c0979 r20488: When joined to a child domain in a multi-domain/single domain tree,
the child domain cannot always resolve SIDs in sibling domains.
Windows tries to contact a DC in its own domain and then the root
domain in the forest.  This async changes makes winbindd's name2sid()
call do the same.
(This used to be commit 7b2bf0e5a6)
2007-10-10 12:16:52 -05:00
Gerald Carter
d3fc370fb9 r20487: Remove the unused dn2ad_canonical() call
(This used to be commit 86e6ae6a9f)
2007-10-10 12:16:52 -05:00
Gerald Carter
725cb5d7c9 r20486: Always upper case the "host/<sAMAccoutnName>" entry in the keytab file
so apps will know which one to look for,
(This used to be commit d4a5dc3ad5)
2007-10-10 12:16:52 -05:00
Gerald Carter
19f85cd9b9 r20485: Add select with a 10 second timeout when reading DSN update responses.
(This used to be commit cb6c6a49e2)
2007-10-10 12:16:52 -05:00
Volker Lendecke
b3ddd92ba2 r20482: Make us survive and activate RAW-CLOSE
(This used to be commit 471c6e6a21)
2007-10-10 12:16:52 -05:00
Volker Lendecke
6edd999dc1 r20479: Both remaining calls of can_delete called it with check_is_at_open==False,
remove that parameter.

Volker
(This used to be commit e51b764870)
2007-10-10 12:16:51 -05:00
Volker Lendecke
58b63b65fc r20478: Make us survive & activate RAW-UNLINK
(This used to be commit 4f0f917b34)
2007-10-10 12:16:51 -05:00
Volker Lendecke
2c1b3a0720 r20470: Jeremy, another one to check:
The only error path of can_delete() that we're interested in ntcreate&x is the
one of can_delete_file_in_directory(), so call that directly.

The only other one where we might get a NT_STATUS_ACCESS_DENIED is from the
lstat in can_delete, but this is covered later in the open_directory and
open_file_ntcreate calls. open_directory does a stat() in the open case which
also covers the (potential) symlink, and open_file_ntcreate does the open(2)
itself, so this should also work.

This makes can_delete() static to reply.c.

Volker
(This used to be commit d289037fdb)
2007-10-10 12:16:51 -05:00
Volker Lendecke
3c4342ddfb r20465: Get rid of a redundant !NT_STATUS_IS_OK(status)
(This used to be commit ff173995cf)
2007-10-10 12:16:51 -05:00
Volker Lendecke
495c361907 r20454: Get rid of a bogus variable that was only assigned but never read.
Jeremy, please check this.

Thanks,

Volker
(This used to be commit 2becbb9e5f)
2007-10-10 12:16:51 -05:00
Volker Lendecke
92d02f7afe r20451: Survive the first of the filter-tests (mkdir).
Add lots of TODOs :-)

Volker
(This used to be commit 0e953884a1)
2007-10-10 12:16:50 -05:00
Stefan Metzmacher
41440d483a r20448: Happy New Year!
metze
(This used to be commit 3260d21163)
2007-10-10 12:16:50 -05:00
Volker Lendecke
dbc231a1c6 r20443: Fix a compiler warning
(This used to be commit 19781d71fc)
2007-10-10 12:16:50 -05:00
Volker Lendecke
200bd10b32 r20442: Slight rewrite of the change notify infrastructure. This now survives the
first of the raw-notify subtests, the one-level test_notify_dir without any
flags around yet.

The tricky part was getting the data structures right, I hope the next tests
don't let that fall over.

fsp->notify is now by default NULL, meaning that nobody has issued a
changenotify call. This means nobody is interested in changes for this
directory.

If that has happened, notify_change_buf collects the changes if no current
request is outstanding, and it collects the requests if no change has happened
since the last request.

Happy New Year, somewhere on this planet it's already 2007 :-)

Volker

P.S: Jeremy, there's a question for you in smbd/files.c line 367.
(This used to be commit ce0ad24988)
2007-10-10 12:16:50 -05:00
Volker Lendecke
421ffdbb24 r20434: Revert an accidential commit
(This used to be commit fe122b07fa)
2007-10-10 12:16:50 -05:00
Volker Lendecke
165f5f3f40 r20433: Work in progress: Survive more of RAW-NOTIFY.
call_nt_transact_notify_change() is now sync if there are changes around.

A notify_message does a direct reply from within the message, so
process_pending_change_notify_queue is not needed anymore for samba-generated
events. Next step is to restructure the kernel-mechanisms to generate
messages.

Volker
(This used to be commit c813f71d00)
2007-10-10 12:16:49 -05:00
Volker Lendecke
ab7fc62edf r20432: Apply some const
(This used to be commit 22163fee59)
2007-10-10 12:16:49 -05:00
James Peach
17a8c7cb92 r20429: Restructure the libuuid API tests to handle the case where libuuid
is (effectively) in libc. Convert AC_LIBTESTFUNC to use the mystically
undocumented m4_ifval, which fixes some quoting problems when
providing shell code for the if-true and if-false branches.
(This used to be commit 5e1fbcc403)
2007-10-10 12:16:49 -05:00
James Peach
62382d19e9 r20428: Rename dns_open. This conflicts with the dns_open symbol in
libSystem on Mac OS X.
(This used to be commit 2117904f18)
2007-10-10 12:16:48 -05:00
James Peach
1beb6f6038 r20427: Rename dnp_open. This conflicts with the dns_open symbol in
libSystem on Mac OS X.
(This used to be commit 585ee7f31d)
2007-10-10 12:16:48 -05:00
Volker Lendecke
6d1607f4d7 r20424: No, we do not have to do that here :-)
(This used to be commit 49a463a97a)
2007-10-10 12:16:48 -05:00
Jeremy Allison
a77b3f38b9 r20412: Placeholder to remind me to write a torture test
for this error code.
Jeremy.
(This used to be commit 71b8686116)
2007-10-10 12:16:48 -05:00