r18009: Fixes bug 4026.
commit8e119b64f1d92026dda855d904be09912a40601c
authorDerrell Lipman <derrell@samba.org>
Sat, 2 Sep 2006 21:47:56 +0000 (2 21:47 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:39:47 +0000 (10 11:39 -0500)
tree847daeee117a2323a1b2a0995ff6e9a48c760341
parentbf7bf8e4e9a279fe3ef1e9ff655b12f65c3c3e67
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).
examples/libsmbclient/testacl.c
source/include/libsmb_internal.h
source/lib/time.c
source/libsmb/clifile.c
source/libsmb/clirap.c
source/libsmb/libsmbclient.c