Fix hang on setting invalid VFAT labels
authorMartin Pitt <martin.pitt@ubuntu.com>
Sat, 6 Nov 2010 17:40:07 +0000 (13:40 -0400)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sat, 6 Nov 2010 17:40:07 +0000 (13:40 -0400)
commit8048a1cb8ae2de37c9fe9b07cc28ebafa0de7231
tree73f3633a3ec41089704e4c6c8b89fb55a7fac4ae
parent1c81be33e87e7dffde0c4c4b4ec278011710dbd9
Fix hang on setting invalid VFAT labels

VFAT does not support several characters in file names and labels, in
particular: " * / : < > ? \ |
(http://en.wikipedia.org/wiki/File_Allocation_Table)

When using one of those, mlabel interactively asks what to do, and thus causes
a hang. Now check for invalid characters and return a proper error instead.

Also update the test case to verify that we get an Error on invalid labels, and
that valid labels still work.
src/helpers/job-change-filesystem-label.c
tests/run