Subject: bug#30682: [PATCH] sed: note in --help what commands are disabled by --sandbox

From: Assaf Gordon <[email-masked]>
Date: Fri, 2 Mar 2018 16:25:52 -0700

Hello Mike,

On Fri, Mar 02, 2018 at 05:11:07PM -0500, Mike Frysinger wrote:
> * sed/sed.c (usage): Add "(disable e/r/w commands)" to --sandbox text.

Thanks.
Attached same patch with slightly modified commit message (added 'subject'
and 'copyright-exempt').

I'll push soon if there are no objections.

regards,
 - assaf
>From ef9fcbc4cd20f30da7068981605c2c89468e9cdf Mon Sep 17 00:00:00 2001
From: Mike Frysinger <[email-masked]>
Date: Fri, 2 Mar 2018 16:13:52 -0700
Subject: [PATCH] sed: improve sandbox description in --help output

* sed/sed.c (usage): Add "(disable e/r/w commands)" to --sandbox text.
Copyright-paperwork-exempt: Yes
---
 sed/sed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sed/sed.c b/sed/sed.c
index 26de1a8..65bcab5 100644
--- a/sed/sed.c
+++ b/sed/sed.c
@@ -168,7 +168,7 @@ Usage: %s [OPTION]... {script-only-if-no-other-script} [input-file]...\n\
                  consider files as separate rather than as a single,\n\
                  continuous long stream.\n"));
   fprintf(out, _("      --sandbox\n\
-                 operate in sandbox mode.\n"));
+                 operate in sandbox mode (disable e/r/w commands).\n"));
   fprintf(out, _("  -u, --unbuffered\n\
                  load minimal amounts of data from the input files and flush\n\
                  the output buffers more often\n"));
-- 
2.7.4