mirror of
https://github.com/vgough/encfs.git
synced 2024-12-01 20:34:04 +01:00
Be sure to test links and not their target
This commit is contained in:
parent
ec9e94f049
commit
97d1b83d71
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user