summaryrefslogtreecommitdiff
path: root/comms/minicom/patches/patch-ae
blob: 37905d235574a4b3b790c2d2c801cb4dccfa0190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ae,v 1.2 1998/08/07 10:36:43 agc Exp $

--- 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",