Page MenuHomeFreeBSD

D17575.id49212.diff
No OneTemporary

D17575.id49212.diff

Index: usr.sbin/pw/pw.h
===================================================================
--- usr.sbin/pw/pw.h
+++ 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: usr.sbin/pw/pw.c
===================================================================
--- usr.sbin/pw/pw.c
+++ 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: usr.sbin/pw/pw_conf.c
===================================================================
--- usr.sbin/pw/pw_conf.c
+++ 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, Feb 8, 7:35 PM (22 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28489820
Default Alt Text
D17575.id49212.diff (1023 B)

Event Timeline