r18009: Fixes bug 4026.
authorDerrell Lipman <derrell@samba.org>
Sat, 2 Sep 2006 21:47:56 +0000 (21:47 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:39:47 +0000 (11:39 -0500)
commit5e44fc4cd47108245c567b9e676a5d8c09787d96
treea5c7ca55269f524c240139de536c9797d8ca4904
parentb7a5e3de1eac86bd460aed341ec17a01f4b82e5f
r18009: Fixes bug 4026.

This completes the work Jeremy began last week, disambiguating the meaning of
c_time.  (In POSIX terminology, c_time means "status Change time", not "create
time".)  All uses of c_time, a_time and m_time have now been replaced with
change_time, access_time, and write_time, and when creation time is intended,
create_time is used.

Additionally, the capability of setting and retrieving the create time have
been added to the smbc_setxattr() and smbc_getxattr() functions.  An example
of setting all four times can be seen with the program

  examples/libsmbclient/testacl

with the following command line similar to:

  testacl -f -S "system.*:CREATE_TIME:1000000000,ACCESS_TIME:1000000060,WRITE_TIME:1000000120,CHANGE_TIME:1000000180" 'smb://server/share/testfile.txt'

The -f option turns on the new mode which uses full time names in the
attribute specification (e.g. ACCESS_TIME vs A_TIME).
(This used to be commit 8e119b64f1d92026dda855d904be09912a40601c)
examples/libsmbclient/testacl.c
source3/include/libsmb_internal.h
source3/lib/time.c
source3/libsmb/clifile.c
source3/libsmb/clirap.c
source3/libsmb/libsmbclient.c