From e191597e6bbf03e920e1b42f44ac65faaddedf51 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 7 Mar 2019 21:04:25 -0600 Subject: Add reset_env() and make su and login use it. Do long-delayed login cleanup. --- lib/lib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index bdabd4a2..87f4150e 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -259,6 +259,7 @@ void do_lines(int fd, char delim, void (*call)(char **pline, long len)); long environ_bytes(); long long millitime(void); char *format_iso_time(char *buf, size_t len, struct timespec *ts); +void reset_env(struct passwd *p, int clear); #define HR_SPACE 1 // Space between number and units #define HR_B 2 // Use "B" for single byte units -- cgit v1.2.3