summaryrefslogtreecommitdiffstats
path: root/pw/pw.h
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
commit22e3ea3a26032d00c12a5fc2814d3b78966018b9 (patch)
treeccf57046e6e890b59da3956bde5724de912e5ba6 /pw/pw.h
parentdb702f87b098c449905c03610b4111e06116f9a1 (diff)
downloadpw-darwin-22e3ea3a26032d00c12a5fc2814d3b78966018b9.tar.gz
pw-darwin-22e3ea3a26032d00c12a5fc2814d3b78966018b9.tar.zst
pw-darwin-22e3ea3a26032d00c12a5fc2814d3b78966018b9.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.h')
-rw-r--r--pw/pw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pw/pw.h b/pw/pw.h
index fde3ce3..d5e2c60 100644
--- a/pw/pw.h
+++ b/pw/pw.h
@@ -64,6 +64,7 @@ enum _which
};
#define _DEF_DIRMODE (S_IRWXU | S_IRWXG | S_IRWXO)
+#define _PW_CONF "pw.conf"
#define _PATH_PW_CONF "/etc/pw.conf"
#define _UC_MAXLINE 1024
#define _UC_MAXSHELLS 32