aboutsummaryrefslogtreecommitdiffstats
path: root/testing/plymouth/plymouth-rpmatch.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-12-17 02:22:34 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-12-17 02:22:34 -0600
commit697e1ef4ccb48c3e16b8655b99def083be7c057f (patch)
tree49c92f08eecd6140a8c61df74ca59cee99bbc4a0 /testing/plymouth/plymouth-rpmatch.patch
parent307a51330502cf44c3164e45cc9c5f1675e2887f (diff)
testing/plymouth: new aport
Diffstat (limited to 'testing/plymouth/plymouth-rpmatch.patch')
-rw-r--r--testing/plymouth/plymouth-rpmatch.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/plymouth/plymouth-rpmatch.patch b/testing/plymouth/plymouth-rpmatch.patch
new file mode 100644
index 00000000000..f6e1948747e
--- /dev/null
+++ b/testing/plymouth/plymouth-rpmatch.patch
@@ -0,0 +1,17 @@
+--- plymouth-0.8.3.orig/src/libply/ply-command-parser.c
++++ plymouth-0.8.3/src/libply/ply-command-parser.c
+@@ -671,6 +671,14 @@
+ return argument[0] == '-' && argument[1] == '-';
+ }
+
++static inline int
++rpmatch (const char *response)
++{
++ /* Test against "^[yY]" and "^[nN]", hardcoded to avoid requiring regex */
++ return (*response == 'y' || *response == 'Y' ? 1
++ : *response == 'n' || *response == 'N' ? 0 : -1);
++}
++
+ static bool
+ ply_command_option_read_arguments (ply_command_option_t *option,
+ ply_list_t *arguments)