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