summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump-parse.c
diff options
context:
space:
mode:
authorMike Frysinger2014-10-29 05:19:03 +0100
committerKarel Zak2014-10-31 10:39:15 +0100
commit72a2a3f5d7cb56e0054b69f54bfc86e9e4a4ced9 (patch)
tree33eef84caea639b7562f2f3608f4f95d7d70ec92 /text-utils/hexdump-parse.c
parenttextual: slice up the usage text of swapon for ease of translation (diff)
downloadkernel-qcow2-util-linux-72a2a3f5d7cb56e0054b69f54bfc86e9e4a4ced9.tar.gz
kernel-qcow2-util-linux-72a2a3f5d7cb56e0054b69f54bfc86e9e4a4ced9.tar.xz
kernel-qcow2-util-linux-72a2a3f5d7cb56e0054b69f54bfc86e9e4a4ced9.zip
libmount: improve kernel command line parsing
The current command line parser will stop at the first occurrence of an option, however the kernel does the opposite. So if you have: root=/dev/sda1 root=/dev/sda2 When you look for "root", the kernel will use /dev/sda2, but util-linux uses /dev/sda1. Further, if args are passed to custom init programs, the parser will pick those up as kernel options. So if you have: root=/dev/sda1 -- /foo bar=yes The kernel will stop at the "--" and pass the rest to userland. But if you look for "bar", util-linux will incorrectly return "yes". Ultimately, there's no way for util-linux to exactly parse the command line the same way as the kernel -- we don't know exactly which ones the kernel picks up and which it passes on to userland (either as env vars or as command line args). The kernel passes all unrecognized options. These updates are simple best effort. URL: https://bugs.gentoo.org/526754 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'text-utils/hexdump-parse.c')
0 files changed, 0 insertions, 0 deletions