diff options
author | Petr Machata <pmachata@redhat.com> | 2012-12-05 01:21:03 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2013-03-08 22:55:27 +0100 |
commit | e7be390210e6be64d21fa0c4b71d6fcfc45f4dcf (patch) | |
tree | eb460eac4f75cdcf70ce7d7f88f80e7472aeee0b /options.c | |
parent | 414989183b268337a4f7e329237f3c1fd726d823 (diff) | |
download | ltrace-e7be390210e6be64d21fa0c4b71d6fcfc45f4dcf.tar.gz |
In opt_F_get_kind, allow symbolic links
lstat should see through them, but bash process substitution produces
files that report themselves as symlinks even to lstat.
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -498,7 +498,7 @@ opt_F_get_kind(struct opt_F_t *entry) entry->kind = OPT_F_BROKEN; } else if (S_ISDIR(st.st_mode)) { entry->kind = OPT_F_DIR; - } else if (S_ISREG(st.st_mode)) { + } else if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) { entry->kind = OPT_F_FILE; } else { fprintf(stderr, "%s is neither a regular file, " |