projects
/
platform
/
upstream
/
udisks2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd70cf
)
Escape NTFS labels properly
author
Martin Pitt
<martin.pitt@ubuntu.com>
Sat, 6 Nov 2010 17:13:35 +0000
(13:13 -0400)
committer
Martin Pitt
<martin.pitt@ubuntu.com>
Sat, 6 Nov 2010 17:13:35 +0000
(13:13 -0400)
Caught by recent test suite update.
src/helpers/job-change-filesystem-label.c
patch
|
blob
|
history
diff --git
a/src/helpers/job-change-filesystem-label.c
b/src/helpers/job-change-filesystem-label.c
index
ec826fc
..
5017b58
100644
(file)
--- a/
src/helpers/job-change-filesystem-label.c
+++ b/
src/helpers/job-change-filesystem-label.c
@@
-101,6
+101,8
@@
main (int argc,
}
else if (strcmp (fstype, "ntfs") == 0)
{
+ if (!validate_and_escape_label (&new_label, 128))
+ goto out;
command_line = g_strdup_printf ("ntfslabel %s \"%s\"", device, new_label);
}
else if (strcmp (fstype, "nilfs2") == 0)