Page MenuHomeFreeBSD

D17566.id49162.diff
No OneTemporary

D17566.id49162.diff

Index: usr.sbin/pw/pw_conf.c
===================================================================
--- usr.sbin/pw/pw_conf.c
+++ usr.sbin/pw/pw_conf.c
@@ -417,9 +417,12 @@
int i, j;
struct sbuf *buf;
FILE *fp;
+ char cfgfile[MAXPATHLEN];
- if (file == NULL)
- file = _PATH_PW_CONF;
+ if (file == NULL) {
+ snprintf(cfgfile, sizeof(cfgfile), "%s/pw.conf", conf.etcpath);
+ file = cfgfile;
+ }
if ((fd = open(file, O_CREAT|O_RDWR|O_TRUNC|O_EXLOCK, 0644)) == -1)
return (0);

File Metadata

Mime Type
text/plain
Expires
Mon, Sep 7, 8:41 AM (16 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38458883
Default Alt Text
D17566.id49162.diff (511 B)

Event Timeline