[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 13/28: boot: Quote arguments containing spaces.
From: |
Samuel Thibault |
Subject: |
[hurd] 13/28: boot: Quote arguments containing spaces. |
Date: |
Wed, 16 Nov 2016 08:30:27 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 6511afff053bab1e7e0542119ff1331813ea19e2
Author: Justus Winter <address@hidden>
Date: Tue Nov 1 13:29:19 2016 +0100
boot: Quote arguments containing spaces.
* boot/boot.c (boot_script_exec_cmd): Quote arguments containing
spaces.
---
boot/boot.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/boot/boot.c b/boot/boot.c
index dacf965..234ccd8 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -318,8 +318,13 @@ boot_script_exec_cmd (void *hook,
write (2, path, strlen (path));
for (i = 1; i < argc; ++i)
{
+ int quote = !! index (argv[i], ' ') || !! index (argv[i], '\t');
write (2, " ", 1);
+ if (quote)
+ write (2, "\"", 1);
write (2, argv[i], strlen (argv[i]));
+ if (quote)
+ write (2, "\"", 1);
}
write (2, "\r\n", 2);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 08/28: proc: Fix new task notifications., (continued)
- [hurd] 08/28: proc: Fix new task notifications., Samuel Thibault, 2016/11/16
- [hurd] 19/28: Adjust to the fixed new task notifications., Samuel Thibault, 2016/11/16
- [hurd] 22/28: eth-multiplexer: Fix packet delivery., Samuel Thibault, 2016/11/16
- [hurd] 16/28: boot: Allow unprivileged users to boot Subhurds., Samuel Thibault, 2016/11/16
- [hurd] 17/28: boot: Add a default boot script., Samuel Thibault, 2016/11/16
- [hurd] 10/28: Add missing spinlock initializers, Samuel Thibault, 2016/11/16
- [hurd] 23/28: eth-multiplexer: Fix retrieving status of virtual interfaces., Samuel Thibault, 2016/11/16
- [hurd] 26/28: boot: Improve device pass-through., Samuel Thibault, 2016/11/16
- [hurd] 25/28: eth-multiplexer: Generate stable ethernet addresses., Samuel Thibault, 2016/11/16
- [hurd] 05/28: Mark library stubs as weak, Samuel Thibault, 2016/11/16
- [hurd] 13/28: boot: Quote arguments containing spaces.,
Samuel Thibault <=
- [hurd] 09/28: boot: Remove hacks for running boot on UX., Samuel Thibault, 2016/11/16
- [hurd] 27/28: mach-defpager: Fix daemonization., Samuel Thibault, 2016/11/16
- [hurd] 07/28: libdiskfs: Factorize code for last hard reference being released, Samuel Thibault, 2016/11/16
- [hurd] 14/28: boot: Move bootscript callbacks., Samuel Thibault, 2016/11/16
- [hurd] 20/28: libbpf: Merge the Berkeley Packet Filter library., Samuel Thibault, 2016/11/16
- [hurd] 21/28: eth-multiplexer: Merge the eth-multiplexer., Samuel Thibault, 2016/11/16