7
#include <libsmbclient.h>
8
#include "get_auth_data_fn.h"
11
int main(int argc, char * argv[])
28
smbc_init(get_auth_data_fn, debug);
30
context = smbc_set_context(NULL);
31
smbc_setOptionFullTimeNames(context, 1);
35
fprintf(stdout, "Path: ");
37
fgets(path, sizeof(path) - 1, stdin);
38
if (strlen(path) == 0)
43
p = path + strlen(path) - 1;
49
the_acl = strdup("system.nt_sec_desc.*+");
50
ret = smbc_getxattr(path, the_acl, value, sizeof(value));
53
printf("Could not get attributes for [%s] %d: %s\n",
54
path, errno, strerror(errno));
58
printf("Attributes for [%s] are:\n%s\n", path, value);