From 29aa58a639334f34b8a5f1629a0b469cdf577c68 Mon Sep 17 00:00:00 2001 From: Yuri Pankov Date: Tue, 16 Oct 2018 16:00:41 +0000 Subject: pw: (file == NULL) check is always false in read_userconfig(), remove it. Drop the now unused _PATH_PW_CONF definition. [1] While here, change the last remaining hardcoded "/etc" to _PATH_PWD. Noted by: glebius [1] Reviewed by: eugen Approved by: re (gjb), kib (mentor) Differential Revision: https://reviews.freebsd.org/D17575 --- pw/pw_conf.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'pw/pw_conf.c') diff --git a/pw/pw_conf.c b/pw/pw_conf.c index f7b98f1..9dff3fe 100644 --- a/pw/pw_conf.c +++ b/pw/pw_conf.c @@ -255,9 +255,6 @@ read_userconfig(char const * file) buf = NULL; linecap = 0; - if (file == NULL) - file = _PATH_PW_CONF; - if ((fp = fopen(file, "r")) == NULL) return (&config); -- cgit v1.2.3