summaryrefslogtreecommitdiffstats
path: root/pw/pw_utils.c
diff options
context:
space:
mode:
authorYuri Pankov <yuripv@FreeBSD.org>2018-10-15 20:11:53 +0000
committerYuri Pankov <yuripv@FreeBSD.org>2018-10-15 20:11:53 +0000
commiteb33f7f73f5a9995d6c1a3eb23f0aaa2de310a2c (patch)
treef5ef89db9a32a359a8453e7b9cd0bb842d167d66 /pw/pw_utils.c
parentbcfb085a8b157ca9c5e5943fd81ed045eb0e7ccc (diff)
downloadpw-darwin-eb33f7f73f5a9995d6c1a3eb23f0aaa2de310a2c.tar.gz
pw-darwin-eb33f7f73f5a9995d6c1a3eb23f0aaa2de310a2c.tar.zst
pw-darwin-eb33f7f73f5a9995d6c1a3eb23f0aaa2de310a2c.zip
pw: respect path specified using -V when writing pw.conf, and -C is not
explicitly specified. -V path is already used to determine which file to read default values from, so it's only logical to write them to the same file. PR: 231653 Reviewed by: eugen, bapt Approved by: re (gjb), kib (mentor) Differential Revision: https://reviews.freebsd.org/D17566
Diffstat (limited to 'pw/pw_utils.c')
-rw-r--r--pw/pw_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_utils.c b/pw/pw_utils.c
index e483977..fbf4a3f 100644
--- a/pw/pw_utils.c
+++ b/pw/pw_utils.c
@@ -71,7 +71,7 @@ get_userconfig(const char *config)
if (config != NULL)
return (read_userconfig(config));
- snprintf(defaultcfg, sizeof(defaultcfg), "%s/pw.conf", conf.etcpath);
+ snprintf(defaultcfg, sizeof(defaultcfg), "%s/" _PW_CONF, conf.etcpath);
return (read_userconfig(defaultcfg));
}