Be sure to test links and not their target

This commit is contained in:
benrubson 2017-06-29 10:59:57 +02:00
parent ec9e94f049
commit 97d1b83d71

View File

@ -19,12 +19,12 @@ my @binattr = ("attr", "-l");
if(system("which xattr > /dev/null 2>&1") == 0) if(system("which xattr > /dev/null 2>&1") == 0)
{ {
# Mac OS X # Mac OS X
@binattr = ("xattr", "-l"); @binattr = ("xattr", "-s");
} }
if(system("which lsextattr > /dev/null 2>&1") == 0) if(system("which lsextattr > /dev/null 2>&1") == 0)
{ {
# FreeBSD # FreeBSD
@binattr = ("lsextattr", "user"); @binattr = ("lsextattr", "-h", "user");
} }
# Helper function # Helper function