-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextended_attr.c
24 lines (21 loc) · 1.04 KB
/
extended_attr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* extended_attr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ihermell <ihermell@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/12/03 05:59:45 by ihermell #+# #+# */
/* Updated: 2014/12/03 09:46:46 by ihermell ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_ls.h"
int has_extended_attr(char *path)
{
int count;
count = listxattr(path, NULL, 0, XATTR_NOFOLLOW);
if (count > 0)
return (1);
else
return (0);
}