ira/wip.git
14 years agobuild: fixed handling of heimdal_build/internal.mk
Andrew Tridgell [Tue, 23 Feb 2010 05:25:59 +0000 (16:25 +1100)]
build: fixed handling of heimdal_build/internal.mk

14 years agobuild: LIBLDB hack not needed any more
Andrew Tridgell [Tue, 23 Feb 2010 04:01:24 +0000 (15:01 +1100)]
build: LIBLDB hack not needed any more

14 years agobuild: on the fly dependency checking
Andrew Tridgell [Wed, 17 Mar 2010 09:21:26 +0000 (20:21 +1100)]
build: on the fly dependency checking

14 years agobuild: improve the wscript generator
Andrew Tridgell [Tue, 23 Feb 2010 03:59:47 +0000 (14:59 +1100)]
build: improve the wscript generator

14 years agobuild: auto-remove circular dependencies
Andrew Tridgell [Tue, 23 Feb 2010 03:43:06 +0000 (14:43 +1100)]
build: auto-remove circular dependencies

14 years agobuild: check for circular build dependencies
Andrew Tridgell [Tue, 23 Feb 2010 02:04:34 +0000 (13:04 +1100)]
build: check for circular build dependencies

14 years agobuild: death to singletons
Andrew Tridgell [Tue, 23 Feb 2010 01:18:04 +0000 (12:18 +1100)]
build: death to singletons

14 years agobuild: simpler BUILD_SUBDIR
Andrew Tridgell [Tue, 23 Feb 2010 00:55:28 +0000 (11:55 +1100)]
build: simpler BUILD_SUBDIR

14 years agobuild: more header checks
Andrew Tridgell [Tue, 23 Feb 2010 00:54:31 +0000 (11:54 +1100)]
build: more header checks

14 years agobuild: use runonce for config checks
Andrew Tridgell [Tue, 23 Feb 2010 00:53:59 +0000 (11:53 +1100)]
build: use runonce for config checks

14 years agobuild: added public_headers support
Andrew Tridgell [Tue, 23 Feb 2010 00:17:06 +0000 (11:17 +1100)]
build: added public_headers support

14 years agobuild: added BUILD_SUBDIR() wrapper
Andrew Tridgell [Tue, 23 Feb 2010 00:16:44 +0000 (11:16 +1100)]
build: added BUILD_SUBDIR() wrapper

14 years agobuild: recognise manpages keyword
Andrew Tridgell [Mon, 22 Feb 2010 22:04:44 +0000 (09:04 +1100)]
build: recognise manpages keyword

14 years agobuild: added autoproto stub
Andrew Tridgell [Mon, 22 Feb 2010 21:56:35 +0000 (08:56 +1100)]
build: added autoproto stub

14 years agobuild: LIBLDB alias
Andrew Tridgell [Mon, 22 Feb 2010 21:38:18 +0000 (08:38 +1100)]
build: LIBLDB alias

14 years agobuild: added top level script
Andrew Tridgell [Mon, 22 Feb 2010 21:37:33 +0000 (08:37 +1100)]
build: added top level script

14 years agobuild: put config.h in top dir by default
Andrew Tridgell [Mon, 22 Feb 2010 21:30:28 +0000 (08:30 +1100)]
build: put config.h in top dir by default

14 years agobuild: allow override of config.h location
Andrew Tridgell [Mon, 22 Feb 2010 21:28:29 +0000 (08:28 +1100)]
build: allow override of config.h location

14 years agobuild: more developer flags
Andrew Tridgell [Mon, 22 Feb 2010 21:26:55 +0000 (08:26 +1100)]
build: more developer flags

14 years agobuild: s4 wants config.h in include/
Andrew Tridgell [Mon, 22 Feb 2010 21:09:46 +0000 (08:09 +1100)]
build: s4 wants config.h in include/

14 years agobuild: add dummy flags for auto-generated scripts
Andrew Tridgell [Mon, 22 Feb 2010 21:04:00 +0000 (08:04 +1100)]
build: add dummy flags for auto-generated scripts

14 years agobuild: first attempt at a script to auto-convert config.mk files to wscript
Andrew Tridgell [Mon, 22 Feb 2010 21:03:30 +0000 (08:03 +1100)]
build: first attempt at a script to auto-convert config.mk files to wscript

14 years agobuild: added ADD_CFLAGS() and started of Samba4 build
Andrew Tridgell [Wed, 17 Mar 2010 09:26:03 +0000 (20:26 +1100)]
build: added ADD_CFLAGS() and started of Samba4 build

14 years agobuild: SAMBA_BUILD_ENV() is now in conf.*
Andrew Tridgell [Mon, 22 Feb 2010 00:59:23 +0000 (11:59 +1100)]
build: SAMBA_BUILD_ENV() is now in conf.*

14 years agobuild: moved lib -> shared
Andrew Tridgell [Mon, 22 Feb 2010 00:59:06 +0000 (11:59 +1100)]
build: moved lib -> shared

- remove lib dep creation, it's done by waf

14 years agobuild: tdb does not depend on talloc
Andrew Tridgell [Mon, 22 Feb 2010 00:58:37 +0000 (11:58 +1100)]
build: tdb does not depend on talloc

14 years agobuild: added waf build rules for ldb
Andrew Tridgell [Wed, 17 Mar 2010 09:32:15 +0000 (20:32 +1100)]
build: added waf build rules for ldb

14 years agobuild: some more config checks
Andrew Tridgell [Sun, 21 Feb 2010 02:56:58 +0000 (13:56 +1100)]
build: some more config checks

14 years agobuild: added recursive library handling
Andrew Tridgell [Sun, 21 Feb 2010 02:56:32 +0000 (13:56 +1100)]
build: added recursive library handling

14 years agobuild: added target directory options
Andrew Tridgell [Sun, 21 Feb 2010 02:55:58 +0000 (13:55 +1100)]
build: added target directory options

14 years agobuild: neater way to find libreplace and start on tevent waf build
Andrew Tridgell [Wed, 17 Mar 2010 09:31:46 +0000 (20:31 +1100)]
build: neater way to find libreplace and start on tevent waf build

14 years agobuild: added waf to the tree, so everyone uses the same version
Andrew Tridgell [Sat, 20 Feb 2010 22:17:50 +0000 (09:17 +1100)]
build: added waf to the tree, so everyone uses the same version

14 years agobuild: added some comments for tdb build
Andrew Tridgell [Sat, 20 Feb 2010 13:40:26 +0000 (00:40 +1100)]
build: added some comments for tdb build

14 years agobuild: more binaries for waf tdb build
Andrew Tridgell [Sat, 20 Feb 2010 13:27:37 +0000 (00:27 +1100)]
build: more binaries for waf tdb build

14 years agobuild: added waf build for tdb
Andrew Tridgell [Sat, 20 Feb 2010 13:24:40 +0000 (00:24 +1100)]
build: added waf build for tdb

14 years agobuild: renamed autoconf.py to wafsamba.py and added SAMBA_*() functions
Andrew Tridgell [Sat, 20 Feb 2010 13:24:28 +0000 (00:24 +1100)]
build: renamed autoconf.py to wafsamba.py and added SAMBA_*() functions

14 years agobuild: updates to waf scripts for replace and talloc
Andrew Tridgell [Sat, 20 Feb 2010 12:29:59 +0000 (23:29 +1100)]
build: updates to waf scripts for replace and talloc

14 years agobuild: a first attempt at waf build for talloc and libreplace
Andrew Tridgell [Sat, 20 Feb 2010 05:25:37 +0000 (16:25 +1100)]
build: a first attempt at waf build for talloc and libreplace

very rough so far

14 years agos4-smbtorture: fix correct result error code in SetForm spoolss test.
Günther Deschner [Tue, 6 Apr 2010 10:13:54 +0000 (12:13 +0200)]
s4-smbtorture: fix correct result error code in SetForm spoolss test.

Guenther

14 years agos4-smbtorture: fix two context arguments in RPC-SAMSYNC test.
Günther Deschner [Tue, 6 Apr 2010 08:55:55 +0000 (10:55 +0200)]
s4-smbtorture: fix two context arguments in RPC-SAMSYNC test.

Guenther

14 years agoAdd FSCTL_QUERY_ALLOCATED_RANGES to the list of Windows ioctls we support.
Jeremy Allison [Tue, 6 Apr 2010 02:33:55 +0000 (19:33 -0700)]
Add FSCTL_QUERY_ALLOCATED_RANGES to the list of Windows ioctls we support.

Based on a patch reported and tested by Ira Cooper <samba@ira.wakeful.net>.

Jeremy.

14 years agoselftest: Remove python2.4-isms
Jelmer Vernooij [Tue, 6 Apr 2010 01:55:10 +0000 (03:55 +0200)]
selftest: Remove python2.4-isms

14 years agoFix issue with aio where r/w lock wasn't kept across aio read operations.
Jeremy Allison [Mon, 5 Apr 2010 21:16:21 +0000 (14:16 -0700)]
Fix issue with aio where r/w lock wasn't kept across aio read operations.

Change schedule_aio_read_and_X/schedule_aio_write_and_X to
return NTSTATUS. Move the grant and release of the lock into
the aio code.

Jeremy

14 years agoFix related to bug #7326 - can't read/write any files with full_audit
Volker Lendecke [Mon, 5 Apr 2010 20:50:59 +0000 (13:50 -0700)]
Fix related to bug #7326 - can't read/write any files with full_audit

14 years agos3: Fix a cut&paste error in winbindd_list_groups_done
Volker Lendecke [Mon, 5 Apr 2010 14:01:32 +0000 (16:01 +0200)]
s3: Fix a cut&paste error in winbindd_list_groups_done

14 years agoRevert "s4:gensec_gssapi.c - make sure that "GSS_C_DELEG_POLICY_FLAG" is available"
Matthias Dieter Wallnöfer [Mon, 5 Apr 2010 10:06:02 +0000 (12:06 +0200)]
Revert "s4:gensec_gssapi.c - make sure that "GSS_C_DELEG_POLICY_FLAG" is available"

This reverts commit 3e091a82167f51b7d9abf00755bede9354932c6b.

This should be fixed through the new build system when it lands in "master".

14 years agos4:python/samba/__init__.py - import "sys" for "ensure_external_module" method
Matthias Dieter Wallnöfer [Tue, 30 Mar 2010 20:06:45 +0000 (22:06 +0200)]
s4:python/samba/__init__.py - import "sys" for "ensure_external_module" method

14 years agolibwbclient: Fix a memleak in wbcListTrusts
Volker Lendecke [Sun, 4 Apr 2010 20:49:38 +0000 (22:49 +0200)]
libwbclient: Fix a memleak in wbcListTrusts

14 years agolibwbclient: Fix memleaks in tests
Volker Lendecke [Sun, 4 Apr 2010 20:49:18 +0000 (22:49 +0200)]
libwbclient: Fix memleaks in tests

14 years agolibwbclient: Fix a memleak in wbcListTrusts
Volker Lendecke [Sun, 4 Apr 2010 20:26:40 +0000 (22:26 +0200)]
libwbclient: Fix a memleak in wbcListTrusts

14 years agos3: Fix the GNU ld version detection on SLES
Volker Lendecke [Sun, 4 Apr 2010 18:09:36 +0000 (20:09 +0200)]
s3: Fix the GNU ld version detection on SLES

On SLES 11 "ld -v" gives

GNU ld (GNU Binutils; SUSE Linux Enterprise 11) 2.19

The regexp to intended to detect the "2.19" is confused by the "11" in the
version string. I'm not really into regexps, and awk '{print $NF}' to me is a
simple (and hopefully portable) way to print the last field.

14 years agolib/replace: Don't use StrnCpy inside crypt.c
Kai Blin [Sun, 4 Apr 2010 11:51:02 +0000 (13:51 +0200)]
lib/replace: Don't use StrnCpy inside crypt.c

With this and the int32_t/int64_t change, talloc crossbuilds to android

14 years agolib/replace: use correct inttypes in crypt.c
Kai Blin [Sun, 4 Apr 2010 11:42:15 +0000 (13:42 +0200)]
lib/replace: use correct inttypes in crypt.c

This makes the android crossbuild slightly less broken.

14 years agolibwbclient: Streamline result processing of wbcCredentialCache()
Volker Lendecke [Sun, 4 Apr 2010 10:12:12 +0000 (12:12 +0200)]
libwbclient: Streamline result processing of wbcCredentialCache()

14 years agolibwbclient: Fix a memleak in wbcCredentialCache
Volker Lendecke [Sun, 4 Apr 2010 10:11:08 +0000 (12:11 +0200)]
libwbclient: Fix a memleak in wbcCredentialCache

14 years agos4-python: Move dsdb_convert_schema_to_openldap to dsdb.
Jelmer Vernooij [Sat, 3 Apr 2010 22:42:52 +0000 (00:42 +0200)]
s4-python: Move dsdb_convert_schema_to_openldap to dsdb.

14 years agos4-python: Move set_opaque_integer -> dsdb.
Jelmer Vernooij [Sat, 3 Apr 2010 22:40:01 +0000 (00:40 +0200)]
s4-python: Move set_opaque_integer -> dsdb.

14 years agos4-python: Avoid importing glue directly.
Jelmer Vernooij [Sat, 3 Apr 2010 22:30:34 +0000 (00:30 +0200)]
s4-python: Avoid importing glue directly.

14 years agos4-python: Remove convenience macro PyErr_SetStringError.
Jelmer Vernooij [Sat, 3 Apr 2010 22:22:29 +0000 (00:22 +0200)]
s4-python: Remove convenience macro PyErr_SetStringError.

This macro assumed that all errors were runtime errors.

14 years agos4-python: Move samdb_server_site_name to dsdb module.
Jelmer Vernooij [Sat, 3 Apr 2010 22:21:09 +0000 (00:21 +0200)]
s4-python: Move samdb_server_site_name to dsdb module.

14 years agos4-python: Move dsdb constants to a separate python module.
Jelmer Vernooij [Sat, 3 Apr 2010 22:14:23 +0000 (00:14 +0200)]
s4-python: Move dsdb constants to a separate python module.

14 years agos4-python: Remove remaining constants.
Jelmer Vernooij [Sat, 3 Apr 2010 21:44:18 +0000 (23:44 +0200)]
s4-python: Remove remaining constants.

14 years agos4-python: Remove unused imports, duplicate definitions of SECINFO_ constants.
Jelmer Vernooij [Sat, 3 Apr 2010 21:33:47 +0000 (23:33 +0200)]
s4-python: Remove unused imports, duplicate definitions of SECINFO_ constants.

14 years agos4-python: Remove duplicate definition of GUID_DRS_* constants.
Jelmer Vernooij [Sat, 3 Apr 2010 21:18:23 +0000 (23:18 +0200)]
s4-python: Remove duplicate definition of GUID_DRS_* constants.

14 years agoselftest: for clarity, rename test to testsuite
Jelmer Vernooij [Thu, 1 Apr 2010 14:24:24 +0000 (16:24 +0200)]
selftest: for clarity, rename test to testsuite

14 years agolibwbclient: Both talloc_free and wbcFreeMemory deal with NULL
Volker Lendecke [Sat, 3 Apr 2010 19:45:55 +0000 (21:45 +0200)]
libwbclient: Both talloc_free and wbcFreeMemory deal with NULL

This is in line with the ANSI C standard definition of free(NULL)

14 years agosocket-wrapper: not all systems have FIONREAD defined
Andrew Tridgell [Sat, 3 Apr 2010 02:30:05 +0000 (13:30 +1100)]
socket-wrapper: not all systems have FIONREAD defined

tru64 for example

14 years agos3: Add wbinfo --logoff
Volker Lendecke [Fri, 2 Apr 2010 18:34:58 +0000 (20:34 +0200)]
s3: Add wbinfo --logoff

14 years agos3: Remove some pointless break statements
Volker Lendecke [Fri, 2 Apr 2010 18:28:44 +0000 (20:28 +0200)]
s3: Remove some pointless break statements

14 years agoUpdate URL in README.cifs-utils
Jeff Layton [Fri, 2 Apr 2010 10:26:09 +0000 (06:26 -0400)]
Update URL in README.cifs-utils

Signed-off-by: Jeff Layton <jlayton@redhat.com>
14 years agos4-rpc: fixed a talloc loop in continue_ntlmssp_connection()
Andrew Tridgell [Fri, 2 Apr 2010 08:08:24 +0000 (19:08 +1100)]
s4-rpc: fixed a talloc loop in continue_ntlmssp_connection()

We were creating a memory loop which caused havoc when the connection
was torn down.

14 years agos3: Fix a comment
Volker Lendecke [Fri, 2 Apr 2010 08:11:12 +0000 (10:11 +0200)]
s3: Fix a comment

14 years agos4-python: added --debuglevel to our python scripts
Andrew Tridgell [Fri, 2 Apr 2010 07:31:30 +0000 (18:31 +1100)]
s4-python: added --debuglevel to our python scripts

very useful for debugging our cPython extensions, such as dcerpc
modules

14 years agos4-pyglue: setup talloc logging in python modules
Andrew Tridgell [Fri, 2 Apr 2010 07:21:14 +0000 (18:21 +1100)]
s4-pyglue: setup talloc logging in python modules

14 years agopyrpc: do the pipe connect on a real memory context
Andrew Tridgell [Fri, 2 Apr 2010 07:20:51 +0000 (18:20 +1100)]
pyrpc: do the pipe connect on a real memory context

14 years agodebug: enable talloc logging
Andrew Tridgell [Fri, 2 Apr 2010 07:19:47 +0000 (18:19 +1100)]
debug: enable talloc logging

we want to ensure talloc warnings are printed in the log

14 years agotalloc: a useful bit of debug code
Andrew Tridgell [Fri, 2 Apr 2010 07:18:53 +0000 (18:18 +1100)]
talloc: a useful bit of debug code

this is useful when tracking down talloc loops. It is probably too
expensive to have on by default.

14 years agotalloc: add a define for TALLOC_MAX_DEPTH
Andrew Tridgell [Fri, 2 Apr 2010 07:17:52 +0000 (18:17 +1100)]
talloc: add a define for TALLOC_MAX_DEPTH

Thanks to the suggestion from simo

14 years agotalloc: change talloc minor version to 2.0.2
Andrew Tridgell [Fri, 2 Apr 2010 01:02:55 +0000 (12:02 +1100)]
talloc: change talloc minor version to 2.0.2

this has the talloc_is_parent() bugfix

14 years agotalloc: limit the depth that talloc will go for talloc_is_parent()
Andrew Tridgell [Fri, 2 Apr 2010 00:59:49 +0000 (11:59 +1100)]
talloc: limit the depth that talloc will go for talloc_is_parent()

We have a bug in the dcerpc registry code that can cause a talloc loop
that chews unlimited CPU because of talloc_is_parent() during a
talloc_free()

14 years agoMove initialize_async_io_handler() inside of smbd/aio.c.
Jeremy Allison [Thu, 1 Apr 2010 23:47:59 +0000 (16:47 -0700)]
Move initialize_async_io_handler() inside of smbd/aio.c.

Call from actual aio read or write. No reason to call this globally on startup.

Jeremy.

14 years agoAdd torture test for bug 7310 - DOS attribute inconsistency with MS Office
Jeremy Allison [Thu, 1 Apr 2010 22:01:43 +0000 (15:01 -0700)]
Add torture test for bug 7310 - DOS attribute inconsistency with MS Office

Ensure we don't regress.

Jeremy.

14 years agos3:winbindd: remove unused variables
Stefan Metzmacher [Thu, 1 Apr 2010 16:10:47 +0000 (18:10 +0200)]
s3:winbindd: remove unused variables

metze

14 years agos3:winbindd: fix problems with SIGCHLD handling (bug #7317)
Stefan Metzmacher [Thu, 1 Apr 2010 14:23:06 +0000 (16:23 +0200)]
s3:winbindd: fix problems with SIGCHLD handling (bug #7317)

The main problem is that we call CatchChild() within the
parent winbindd, which overwrites the signal handler
that was registered by winbindd_setup_sig_chld_handler().

That means winbindd_sig_chld_handler() and winbind_child_died()
are never triggered when a winbindd domain child dies.
As a result will get "broken pipe" for all requests to that domain.

To reduce the risk of similar bugs in future we call
CatchChild() in winbindd_reinit_after_fork() now.

We also use a full winbindd_reinit_after_fork() in the
cache validation child now instead instead of just resetting
the SIGCHLD handler by hand. This will also fix possible
tdb problems on systems without pread/pwrite and disabled mmap
as we now correctly reopen the tdb handle for the child.

metze

14 years agos3: Ensure NULL termination before printing in winbindd_pam_logoff
Volker Lendecke [Thu, 1 Apr 2010 14:32:44 +0000 (16:32 +0200)]
s3: Ensure NULL termination before printing in winbindd_pam_logoff

14 years agos4-python: Ensure __init__ exists in samba.external, or importing will fail.
Jelmer Vernooij [Thu, 1 Apr 2010 13:32:32 +0000 (15:32 +0200)]
s4-python: Ensure __init__ exists in samba.external, or importing will fail.

14 years agos4-python: Install external packages to a different directory but import into
Jelmer Vernooij [Thu, 1 Apr 2010 13:20:25 +0000 (15:20 +0200)]
s4-python: Install external packages to a different directory but import into
the normal namespace when the system doesn't have it available.

14 years agos3: Fix a typo in winbindd_pam_logoff
Volker Lendecke [Thu, 1 Apr 2010 13:13:37 +0000 (15:13 +0200)]
s3: Fix a typo in winbindd_pam_logoff

14 years agosubunitrun: Find testtools and subunit when they're not provided by the
Jelmer Vernooij [Thu, 1 Apr 2010 12:47:54 +0000 (14:47 +0200)]
subunitrun: Find testtools and subunit when they're not provided by the
system.

14 years agos3:winbindd: correctly invalidate the cached connection
Stefan Metzmacher [Wed, 31 Mar 2010 18:54:18 +0000 (20:54 +0200)]
s3:winbindd: correctly invalidate the cached connection

There're maybe additional TCP connection for ncacn_ip_tcp.

metze

14 years agos3:winbindd: only set child_domain in the child
Stefan Metzmacher [Wed, 31 Mar 2010 18:20:26 +0000 (20:20 +0200)]
s3:winbindd: only set child_domain in the child

metze

14 years agos3:winbindd: make sure we don't try rpc requests against unaccessable domains
Stefan Metzmacher [Thu, 1 Apr 2010 07:29:38 +0000 (09:29 +0200)]
s3:winbindd: make sure we don't try rpc requests against unaccessable domains

This makes sure we don't crash while trying to dereference domain->conn.cli->foo
while trying to establish a rpc connection to the server.

metze

14 years agos3: fix a typo in winbind_client_response_written
Volker Lendecke [Thu, 1 Apr 2010 10:54:31 +0000 (12:54 +0200)]
s3: fix a typo in winbind_client_response_written

14 years agoMake smbd_lock_socket/smbd_unlock_socket recursive with a ref_count.
Jeremy Allison [Thu, 1 Apr 2010 00:40:30 +0000 (17:40 -0700)]
Make smbd_lock_socket/smbd_unlock_socket recursive with a ref_count.

As these always call exit_server, make that part of the function.
Use _internal functions for the echo client.

Metze please check !

Jeremy.

14 years agos3: Merge French translation for pam_winbind after review
Christian PERRIER [Wed, 31 Mar 2010 21:02:32 +0000 (23:02 +0200)]
s3: Merge French translation for pam_winbind after review

- some wording improvements ("user" is not "usager" but "utilisateur"
- gender neutrality changes:
  by rewording:  ("vous n'êtes pas autorisé" --> "vous n'avez pas
  l'autorisation")
- bad translation corrections: "valide"-->"valable" (a very common
  false friend)
- and several changes we consider to be improvements, mostly because
  they are common wording in computing translations in French

Signed-off-by: Lars Müller <lars@samba.org>
14 years agos3: Fix an error message in winbindd_pam_chauthtok()
Volker Lendecke [Wed, 31 Mar 2010 20:06:23 +0000 (22:06 +0200)]
s3: Fix an error message in winbindd_pam_chauthtok()

14 years agos3: Ensure null termination in winbindd_pam_chauthtok()
Volker Lendecke [Wed, 31 Mar 2010 20:05:02 +0000 (22:05 +0200)]
s3: Ensure null termination in winbindd_pam_chauthtok()

14 years agos3: Make check_info3_in_group static
Volker Lendecke [Wed, 31 Mar 2010 18:57:01 +0000 (20:57 +0200)]
s3: Make check_info3_in_group static

14 years agos3-winbind: Make append_auth_data() static
Volker Lendecke [Mon, 29 Mar 2010 13:44:38 +0000 (15:44 +0200)]
s3-winbind: Make append_auth_data() static

14 years agoFix bug 7310 - DOS attribute inconsistency with MS Office
Jeremy Allison [Wed, 31 Mar 2010 05:16:37 +0000 (22:16 -0700)]
Fix bug 7310 - DOS attribute inconsistency with MS Office

On rename we need to set the archive bit on the renamed file.

Jeremy