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 p
= fgets(path
, sizeof(path
) - 1, stdin
);
32 printf("Error reading from stdin\n");
35 if (strlen(path
) == 0)
40 p
= path
+ strlen(path
) - 1;
46 the_acl
= strdup("system.nt_sec_desc.*+");
47 ret
= smbc_getxattr(path
, the_acl
, value
, sizeof(value
));
50 printf("Could not get attributes for [%s] %d: %s\n",
51 path
, errno
, strerror(errno
));
55 printf("Attributes for [%s] are:\n%s\n", path
, value
);