Page MenuHomeFreeBSD

D17575.diff
No OneTemporary

D17575.diff

Index: head/usr.sbin/pw/pw.h
===================================================================
--- head/usr.sbin/pw/pw.h
+++ head/usr.sbin/pw/pw.h
@@ -65,7 +65,6 @@
#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
Index: head/usr.sbin/pw/pw.c
===================================================================
--- head/usr.sbin/pw/pw.c
+++ head/usr.sbin/pw/pw.c
@@ -162,7 +162,8 @@
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;
}
Index: head/usr.sbin/pw/pw_conf.c
===================================================================
--- head/usr.sbin/pw/pw_conf.c
+++ head/usr.sbin/pw/pw_conf.c
@@ -255,9 +255,6 @@
buf = NULL;
linecap = 0;
- if (file == NULL)
- file = _PATH_PW_CONF;
-
if ((fp = fopen(file, "r")) == NULL)
return (&config);

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 10:27 AM (21 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15939023
Default Alt Text
D17575.diff (1 KB)

Event Timeline