summaryrefslogtreecommitdiff
path: root/usr.bin/doas/doas.h
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2019-06-17 19:51:24 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2019-06-17 19:51:24 +0000
commit58568ba591910fb0ed917d9aa8fa9fab9a4024dd (patch)
tree1bddef3e8ca5ff53131af3091f6036281065ef58 /usr.bin/doas/doas.h
parent63c852e158019828366b92c4f212ef65fbf81085 (diff)
setusercontext resets PATH (which we want). but then it becomes
impossible to access the old PATH. save a copy in case we need it later. bug report from espie.
Diffstat (limited to 'usr.bin/doas/doas.h')
-rw-r--r--usr.bin/doas/doas.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/doas/doas.h b/usr.bin/doas/doas.h
index eec0b0759c4..6f50fc22869 100644
--- a/usr.bin/doas/doas.h
+++ b/usr.bin/doas/doas.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: doas.h,v 1.14 2019/06/16 18:16:34 tedu Exp $ */
+/* $OpenBSD: doas.h,v 1.15 2019/06/17 19:51:23 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -29,6 +29,8 @@ extern struct rule **rules;
extern int nrules;
extern int parse_errors;
+extern const char *formerpath;
+
struct passwd;
char **prepenv(const struct rule *, const struct passwd *,