summaryrefslogtreecommitdiff
path: root/comms/minicom/patches/patch-ae
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1998-02-11 18:29:26 +0000
committertron <tron@pkgsrc.org>1998-02-11 18:29:26 +0000
commit6f59b84fd04db1e826b160d27bd943efb64dbd3f (patch)
treedebd5ba533d23a4ace72e82d3f945634a27b8321 /comms/minicom/patches/patch-ae
parent328a92513aa66f22d1db570d906b9140be3c5383 (diff)
downloadpkgsrc-6f59b84fd04db1e826b160d27bd943efb64dbd3f.tar.gz
Initial import of FreeBSD's "minicom" port.
Diffstat (limited to 'comms/minicom/patches/patch-ae')
-rw-r--r--comms/minicom/patches/patch-ae12
1 files changed, 12 insertions, 0 deletions
diff --git a/comms/minicom/patches/patch-ae b/comms/minicom/patches/patch-ae
new file mode 100644
index 00000000000..50222cb15f1
--- /dev/null
+++ b/comms/minicom/patches/patch-ae
@@ -0,0 +1,12 @@
+--- minicom.c.orig Sat Sep 27 17:03:30 1997
++++ minicom.c Fri Jan 9 19:59:13 1998
+@@ -530,7 +530,8 @@
+ /* Loop again if more options */
+ } while(optind < argk);
+
+- if (real_uid == 0 && dosetup == 0) {
++ /* also allow root to run minicom with `-d' switch */
++ if (real_uid == 0 && dosetup == 0 && cmd_dial == NULL) {
+ fprintf(stderr, "%s%s%s",
+ "minicom: WARNING: please don't run minicom as root when not maintaining\n",
+ " it (with the -s switch) since all changes to the\n",