2 * Check that flistxattr() calls on orphans do not return "trusted.link" EAs.
10 #include <sys/xattr.h>
13 main(int argc, char *argv[])
21 fd = open(argv[1], O_RDWR | O_CREAT, 0666);
34 size = flistxattr(fd, NULL, 0);
36 perror("flistxattr size");
43 fprintf(stderr, "Cannot allocate names\n");
48 size = flistxattr(fd, names, size);
56 for (name = names; name < names + size; name += strlen(name) + 1)
57 if (strcmp(name, "trusted.link") == 0) {