aboutsummaryrefslogtreecommitdiff
path: root/lib/fstree/hardlink.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2024-02-14 09:21:30 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2024-02-14 09:21:30 +0100
commit358073d713deb16460ae633d5a48a8e48180369f (patch)
tree9b5c5e3fe81fccc387b8b3ab5d5d6a44162a40c7 /lib/fstree/hardlink.c
parent5f5097653c93af8cd417f8753738f86a655d34a1 (diff)
Fix win32 filename sanitation for cases were we have clashes
We fix filenames containing components like COM1 or PRN by appending an underscore ('_'). A squashfs archive may contain files that already have such a modifed name (e.g. COM1_) which would now potentially clash. This is fixed by matching any number of trailing '_' characters for the bad name and adding another one. So all existing names that start with an illegal prefix and have any number of underscores, will always have an additional one appended. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstree/hardlink.c')
0 files changed, 0 insertions, 0 deletions