Skip to contentSkip to conversation

getfattr and symlinks

DISCUSSION Zdenek Prikryl 2 participants 2 messages Sep 10, 2007 – Sep 11, 2007

lore
Share & tools
lore
#0 lore raw

Hello,
I have one question, what is right behavior of getfattr in a recursive mode? Should getfattr follow symlinks in this mode (without [PLh] parameters)?

Example:

$HOME/file.txt
$HOME/symlink -> /
...

getfattr -Rd $HOME

So what is the right result? Follow "$HOME/symlink" or not?

Thank you

Zdenek Prikryl

#1 lore raw

My understanding on man pages says that it doesn't follow the symlink. Note that a symlink file itself can also have extended attributes. Unless specified,
getfattr should just try to extract extended attributes of the symbolic link file itself.

-Saradhi.

Quoted 12 lines · Zdenek Prikryl

Hello,
I have one question, what is right behavior of getfattr in a recursive mode? Should getfattr follow symlinks in this mode (without [PLh] parameters)?

Example:

$HOME/file.txt
$HOME/symlink -> /
...

Quoted 10 lines

getfattr -Rd $HOME

So what is the right result? Follow "$HOME/symlink" or not?

Thank you

Zdenek Prikryl

[[HTML alternate version deleted]]