Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107815110
D17575.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D17575.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D17575: pw: file == NULL check in read_userconfig() is always false
Attached
Detach File
Event Timeline
Log In to Comment