lihongjie0209
2019-10-14 11:24:32 +08:00
很明显在源代码中没有地方维护这种信息
```
struct fileinfo
{
/* The file name. */
char *name;
/* For symbolic link, name of the file linked to, otherwise zero. */
char *linkname;
/* For terminal hyperlinks. */
char *absolute_name;
struct stat stat;
enum filetype filetype;
/* For symbolic link and long listing, st_mode of file linked to, otherwise
zero. */
mode_t linkmode;
/* security context. */
char *scontext;
bool stat_ok;
/* For symbolic link and color printing, true if linked-to file
exists, otherwise false. */
bool linkok;
/* For long listings, true if the file has an access control list,
or a security context. */
enum acl_type acl_type;
/* For color listings, true if a regular file has capability info. */
bool has_capability;
/* Whether file name needs quoting. tri-state with -1 == unknown. */
int quoted;
};
```