diff options
author | Yuri Pankov <yuripv@FreeBSD.org> | 2018-10-16 16:00:41 +0000 |
---|---|---|
committer | Yuri Pankov <yuripv@FreeBSD.org> | 2018-10-16 16:00:41 +0000 |
commit | 29aa58a639334f34b8a5f1629a0b469cdf577c68 (patch) | |
tree | 8a072ddf082963e1276f1bc8ff47b0cb345696c2 /pw/pw.c | |
parent | 22e3ea3a26032d00c12a5fc2814d3b78966018b9 (diff) | |
download | pw-darwin-29aa58a639334f34b8a5f1629a0b469cdf577c68.tar.gz pw-darwin-29aa58a639334f34b8a5f1629a0b469cdf577c68.tar.zst pw-darwin-29aa58a639334f34b8a5f1629a0b469cdf577c68.zip |
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
Diffstat (limited to 'pw/pw.c')
-rw-r--r-- | pw/pw.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -162,7 +162,8 @@ main(int argc, char *argv[]) PWF._altdir = PWF_ROOTDIR; } snprintf(conf.etcpath, sizeof(conf.etcpath), - "%s%s", optarg, arg == 'R' ? "/etc" : ""); + "%s%s", optarg, arg == 'R' ? + _PATH_PWD : ""); } else break; } |