summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2006-09-02 21:47:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:39:47 -0500
commit8e119b64f1d92026dda855d904be09912a40601c (patch)
tree847daeee117a2323a1b2a0995ff6e9a48c760341 /source/include
parentbf7bf8e4e9a279fe3ef1e9ff655b12f65c3c3e67 (diff)
downloadsamba-8e119b64f1d92026dda855d904be09912a40601c.tar.gz
samba-8e119b64f1d92026dda855d904be09912a40601c.tar.xz
samba-8e119b64f1d92026dda855d904be09912a40601c.zip
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).
Diffstat (limited to 'source/include')
-rw-r--r--source/include/libsmb_internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/include/libsmb_internal.h b/source/include/libsmb_internal.h
index 42bf2373c1b..ce7a90747fc 100644
--- a/source/include/libsmb_internal.h
+++ b/source/include/libsmb_internal.h
@@ -81,6 +81,15 @@ struct smbc_internal_data {
BOOL _debug_stderr;
/*
+ * Support "Create Time" in get/set with the *xattr() functions, if
+ * true. This replaces the dos attribute strings C_TIME, A_TIME and
+ * M_TIME with CHANGE_TIME, ACCESS_TIME and WRITE_TIME, and adds
+ * CREATE_TIME. Default is FALSE, i.e. to use the old-style shorter
+ * names and to not support CREATE time, for backward compatibility.
+ */
+ BOOL _full_time_names;
+
+ /*
* Authentication function which includes the context. This will be
* used if set; otherwise context->callbacks.auth_fn() will be used.
*/