summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/libsmbclient/testacl.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/examples/libsmbclient/testacl.c b/examples/libsmbclient/testacl.c
index ce5694b331..4d327b39a7 100644
--- a/examples/libsmbclient/testacl.c
+++ b/examples/libsmbclient/testacl.c
@@ -23,6 +23,7 @@ int main(int argc, const char *argv[])
int flags;
int debug = 0;
int numeric = 0;
+ int full_time_names = 0;
enum acl_mode mode = SMB_ACL_GET;
static char *the_acl = NULL;
int ret;
@@ -43,6 +44,11 @@ int main(int argc, const char *argv[])
0, "Set debug level (0-100)"
},
{
+ "full_time_names", 'f', POPT_ARG_NONE, &full_time_names,
+ 1,
+ "Use new style xattr names, which include CREATE_TIME"
+ },
+ {
"delete", 'D', POPT_ARG_STRING, NULL,
'D', "Delete an acl", "ACL"
},
@@ -133,6 +139,11 @@ int main(int argc, const char *argv[])
printf("Could not initialize smbc_ library\n");
return 1;
}
+
+ if (full_time_names) {
+ SMBCCTX *context = smbc_set_context(NULL);
+ smbc_option_set(context, "full_time_names", 1);
+ }
/* Perform requested action */
@@ -143,11 +154,11 @@ int main(int argc, const char *argv[])
{
if (numeric)
{
- the_acl = "system.nt_sec_desc.*";
+ the_acl = "system.*";
}
else
{
- the_acl = "system.nt_sec_desc.*+";
+ the_acl = "system.*+";
}
}
ret = smbc_getxattr(path, the_acl, value, sizeof(value));