diff options
author | otto <otto@openbsd.org> | 2015-10-03 16:24:53 +0000 |
---|---|---|
committer | otto <otto@openbsd.org> | 2015-10-03 16:24:53 +0000 |
commit | 0f4ceef8e8abc63e4d68ab9243d28763cd52f3ae (patch) | |
tree | 842a3e269a20141d68f150bbb6b92c4ef70cf92f /usr.bin/dc | |
parent | oops! cannot tame the chmod case, because the kernel drops the (diff) | |
download | wireguard-openbsd-0f4ceef8e8abc63e4d68ab9243d28763cd52f3ae.tar.xz wireguard-openbsd-0f4ceef8e8abc63e4d68ab9243d28763cd52f3ae.zip |
disable ! command, makes dc(1) more tameable
Diffstat (limited to 'usr.bin/dc')
-rw-r--r-- | usr.bin/dc/bcode.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/usr.bin/dc/bcode.c b/usr.bin/dc/bcode.c index 64bb41efd5f..d54fe632c75 100644 --- a/usr.bin/dc/bcode.c +++ b/usr.bin/dc/bcode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcode.c,v 1.47 2015/02/16 20:53:34 jca Exp $ */ +/* $OpenBSD: bcode.c,v 1.48 2015/10/03 16:24:53 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> @@ -87,7 +87,6 @@ static void num_digits(void); static void to_ascii(void); static void push_line(void); static void comment(void); -static void bexec(char *); static void badd(void); static void bsub(void); static void bmul(void); @@ -932,13 +931,6 @@ comment(void) } static void -bexec(char *line) -{ - (void)system(line); - free(line); -} - -static void badd(void) { struct number *a, *b; @@ -1434,7 +1426,7 @@ not_compare(void) break; default: unreadch(); - bexec(readline()); + (void)fprintf(stderr, "! command is deprecated\n"); break; } } |