e2fsprogs/misc
Lukas Czerner 6fa8edd0fd mke2fs: Escape double quotes when parsing mke2fs.conf
Currently, when constructing the <default> configuration pseudo-file using
the profile-to-c.awk script we will just pass the double quotes as they
appear in the mke2fs.conf.

This is problematic, because the resulting default_profile.c will either
fail to compile because of syntax error, or leave the resulting
configuration invalid.

It can be reproduced by adding the following line somewhere into
mke2fs.conf configuration and forcing mke2fs to use the <default>
configuration by specifying nonexistent mke2fs.conf

MKE2FS_CONFIG="nonexistent" ./misc/mke2fs -T ext4 /dev/device

default_mntopts = "acl,user_xattr"
^ this will fail to compile

default_mntopts = ""
^ this will result in invalid config file

Syntax error in mke2fs config file (<default>, line #4)
       Unknown code prof 17

Fix it by escaping the double quotes with a backslash in
profile-to-c.awk script.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2021-01-19 23:56:20 -05:00
..
Android.bp AOSP: tune2fs, resize2fs: make ramdisk binaries. 2020-03-20 23:19:24 -04:00
badblocks.8.in Remove spaces at the end of man pages 2017-08-04 01:51:50 -04:00
badblocks.c Fix posix_memalign and posix_fadvise calls. 2019-06-07 13:07:12 -04:00
base_device.c Make sure test progams free all allocated memory 2016-11-11 23:15:56 -05:00
base_device.tst ChangeLog, Makefile.in, base_device.c, base_device.tst, fsck.c, fsck.h: 2000-12-03 06:33:56 +00:00
blkid.8.in blkid: On the man page, show option arguments in the descriptions. 2008-08-14 13:29:50 -04:00
blkid.c AOSP: Ignore quotes in safe_print(). 2018-08-18 15:59:58 -04:00
chattr.1.in chattr/lsattr: Support dax attribute 2020-10-01 16:55:16 -04:00
chattr.c chattr/lsattr: Support dax attribute 2020-10-01 16:55:16 -04:00
check_fuzzer.c Add a program to test images provided by UBSAN fuzzing reports 2019-11-22 23:27:47 -05:00
create_inode.c create_inode: set xattrs to the root directory as well 2020-12-15 13:38:28 -05:00
create_inode.h tests, mke2fs: add option to suppress xattr copying to fix f_extent_htree 2018-06-26 15:21:28 -04:00
dumpe2fs.8.in misc: add e2mmpstatus utility via dumpe2fs 2018-06-22 18:22:37 -04:00
dumpe2fs.c e2fsck: use proper types for variables 2020-02-29 18:26:38 -05:00
e2freefrag.8.in misc: fix groff formatting nits in man pages 2018-12-11 22:31:14 -05:00
e2freefrag.c Merge branch 'maint' into next 2019-03-06 00:06:42 -05:00
e2freefrag.h e2freefrag: Improve output to include be more like xfs_db's freesp -s 2009-07-24 18:33:46 -04:00
e2fuzz.c Use ext2_loff_t instead of loff_t 2020-03-23 21:21:00 -04:00
e2fuzz.sh e2fuzz: fuzz harder 2015-04-20 21:47:18 -04:00
e2image.8.in e2image: remove redundant -fr from man page and usage message 2020-01-01 13:41:35 -05:00
e2image.c e2fsck: use proper types for variables 2020-02-29 18:26:38 -05:00
e2initrd_helper.c Move the check_plausibility() function from misc to lib/support 2015-07-12 22:01:17 -04:00
e2label.8.in Remove spaces at the end of man pages 2017-08-04 01:51:50 -04:00
e2label.c mmp: abstract out repeated 'sizeof(buf), buf' usage 2020-01-24 23:06:58 -05:00
e2mmpstatus.8.in misc: fix groff formatting nits in man pages 2018-12-11 22:31:14 -05:00
e2undo.8.in Add missing information to various man pages and usage texts 2017-12-21 11:11:10 -05:00
e2undo.c Fix compile error and warnings for old gcc versions 2018-07-14 20:46:30 -04:00
e4crypt.8.in e4crypt: if salt is explicitly provided to add_key, then use it 2020-10-01 16:51:46 -04:00
e4crypt.c e4crypt: if salt is explicitly provided to add_key, then use it 2020-10-01 16:51:46 -04:00
e4defrag.8.in e4defrag: fix typo in man page 2018-05-27 16:09:28 -04:00
e4defrag.c Fix posix_memalign and posix_fadvise calls. 2019-06-07 13:07:12 -04:00
ext4.5.in ext4.5: tweak the documentation for the encrypt feature 2019-09-23 13:28:36 -04:00
filefrag.8.in misc: handle very large files with filefrag 2020-03-04 18:26:09 -05:00
filefrag.c filefrag: handle invalid st_dev and blksize cases 2021-01-19 23:43:29 -05:00
findfs.8.in Remove spaces at the end of man pages 2017-08-04 01:51:50 -04:00
findsuper.c mmp: abstract out repeated 'sizeof(buf), buf' usage 2020-01-24 23:06:58 -05:00
fsck.8.in Remove spaces at the end of man pages 2017-08-04 01:51:50 -04:00
fsck.c Fix gcc and clang warnings 2018-06-23 23:00:50 -04:00
fsck.h Fix typos in code comments and developer docs 2017-10-15 23:00:11 -04:00
fsmap.h e2freefrag: use GETFSMAP on mounted filesystems 2017-05-29 22:29:15 -04:00
fuse2fs.1.in fuse2fs: add fakeroot option. 2018-10-16 15:37:45 -04:00
fuse2fs.c e2fsck: fix overflow if more than 4B inodes 2020-02-29 18:34:54 -05:00
ismounted.c misc: cleanup unused variables on MacOS 2012-12-29 17:28:37 -05:00
logsave.8.in Remove spaces at the end of man pages 2017-08-04 01:51:50 -04:00
logsave.c Fix typos in code comments and developer docs 2017-10-15 23:00:11 -04:00
lsattr.1.in Add missing information to various man pages and usage texts 2017-12-21 11:11:10 -05:00
lsattr.c Merge branch 'maint' into next 2016-03-06 20:37:49 -05:00
Makefile.in Define MKDIR_P in the Makefile.in files instead in MCONFIG.in 2020-10-04 23:05:01 -04:00
mk_hugefiles.c mke2fs: fix bugs in hugefile creation 2019-01-24 23:18:11 -05:00
mke2fs-hurd.conf Add "big" and "huge" types to mke2fs.conf 2011-10-03 23:46:17 -04:00
mke2fs.8.in misc: add text describing the impact of an inode size < 128 bytes in man pages 2020-03-20 21:35:03 -04:00
mke2fs.c mke2fs: Warn if fs block size is incompatible with DAX 2020-10-01 16:51:46 -04:00
mke2fs.conf.5.in Rename the feature "fname_encoding" to be "casefold". 2019-05-03 13:16:29 -04:00
mke2fs.conf.in mke2fs.conf: remove options.fname_encoding 2020-03-09 12:36:10 -04:00
mke2fs.h mke2fs: add support to align hugefiles relative to beginning of the disk 2014-07-09 10:42:13 -04:00
mklost+found.8.in Remove spaces at the end of man pages 2017-08-04 01:51:50 -04:00
mklost+found.c Fix gcc and clang warnings 2018-06-23 23:00:50 -04:00
partinfo.c partinfo: fix some build errors 2016-10-25 13:28:13 -04:00
profile-to-c.awk mke2fs: Escape double quotes when parsing mke2fs.conf 2021-01-19 23:56:20 -05:00
tune2fs.8.in misc: add text describing the impact of an inode size < 128 bytes in man pages 2020-03-20 21:35:03 -04:00
tune2fs.c tune2fs: reset MMP state on error exit 2020-10-01 16:51:46 -04:00
tune2fs.h Fix typos in code comments and developer docs 2017-10-15 23:00:11 -04:00
util.c mmp: abstract out repeated 'sizeof(buf), buf' usage 2020-01-24 23:06:58 -05:00
util.h misc: move check_plausibility into a separate file 2014-09-19 13:10:21 -04:00
uuidd.8.in Fix the pathname of /var/lib/uuidd/uuidd.pid in uuidd man page. 2008-01-19 18:13:14 -05:00
uuidd.c Move the check_plausibility() function from misc to lib/support 2015-07-12 22:01:17 -04:00
uuidd.rc Add uuidd daemon to prevent duplicate time-based UUID's 2007-12-16 17:28:46 -05:00
uuidgen.1.in Remove spaces at the end of man pages 2017-08-04 01:51:50 -04:00
uuidgen.c Move the check_plausibility() function from misc to lib/support 2015-07-12 22:01:17 -04:00