From 2c6b25f01802808b142d450af3352605720899da Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 2 Jul 2013 10:46:10 +0200 Subject: libmount: be more restrictive about valid tag names # mount DUMMY=filename.img /mnt The 'DUMMY=filename.img' is a filename and should not be interpreted as tag name. The valid tag names are LABEL, UUID, PARTLABEL and PARTUUID only. Signed-off-by: Karel Zak --- libmount/src/mountP.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmount/src/mountP.h') diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h index e064a6849..7b0848f92 100644 --- a/libmount/src/mountP.h +++ b/libmount/src/mountP.h @@ -136,6 +136,8 @@ extern int startswith(const char *s, const char *sx) extern char *stripoff_last_component(char *path); +extern int mnt_valid_tagname(const char *tagname); + extern int is_file_empty(const char *name); extern int mkdir_p(const char *path, mode_t mode); -- cgit v1.2.3-55-g7522