diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-10-05 13:20:01 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-11-21 05:41:20 +0100 |
commit | c99cb9e4ab1bd2683759f35a6878a685bf5e8dd7 (patch) | |
tree | 6b6d779c237fd373fea113239c594a0b9d09e6a2 /procfs | |
parent | 36f340ae47a0f643be6d59a8190600cdd34eef0c (diff) |
trans/mtab: avoid firmlink loops
* trans/mtab.c (struct mtab): Add a hash table to keep track of seen
ports.
(mtab_mark_as_seen): New function that records the identity port of a
given node in the hash table and reports whether it has been there
before.
(mtab_populate): Use the new function to avoid running in circles.
(main, open_hook): Initialize hash table.
(close_hook): Free ports and destroy hash table.
Diffstat (limited to 'procfs')
0 files changed, 0 insertions, 0 deletions