summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1997-09-01 09:33:08 +0000
committerDavid Nugent <davidn@FreeBSD.org>1997-09-01 09:33:08 +0000
commite9cd7a9bd7cea36d4762f11a34c5303bdf1dcbc5 (patch)
tree0d58e0edc787f6aa97f0253c3dc39f7ef6a7eb0f
parentd21644123fd05fe7cbe962fab8b2b89bec304ff0 (diff)
downloadpw-darwin-e9cd7a9bd7cea36d4762f11a34c5303bdf1dcbc5.tar.gz
pw-darwin-e9cd7a9bd7cea36d4762f11a34c5303bdf1dcbc5.tar.zst
pw-darwin-e9cd7a9bd7cea36d4762f11a34c5303bdf1dcbc5.zip
Unquote default group in pw.conf.
PR: 4365 Submitted by: "Andrew L. Moore" <alm@mclink.com>
-rw-r--r--pw/pw_conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pw/pw_conf.c b/pw/pw_conf.c
index 42ce4a6..144737f 100644
--- a/pw/pw_conf.c
+++ b/pw/pw_conf.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: pw_conf.c,v 1.5 1997/02/22 16:12:27 peter Exp $
*/
#include <string.h>
@@ -306,6 +306,7 @@ read_userconfig(char const * file)
? (char *) bourne_shell : newstr(q);
break;
case _UC_DEFAULTGROUP:
+ q = unquote(q);
config.default_group = (q == NULL || !boolean_val(q, 1) || getgrnam(q) == NULL)
? NULL : newstr(q);
break;