]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - pw/pw_conf.c
Grammar and spelling fixes
[pw-darwin.git] / pw / pw_conf.c
index bf93c2a0f25bbd46ca8b2cbd6773edbe4cd92fd7..dc1bd610f544b29fcf045d5097dd70b722f3194a 100644 (file)
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
- *
- *     $Id: pw_conf.c,v 1.2 1996/12/21 15:35:42 davidn Exp $
  */
 
+#ifndef lint
+static const char rcsid[] =
+       "$Id: pw_conf.c,v 1.7 1997/10/10 06:23:36 charnier Exp $";
+#endif /* not lint */
+
 #include <string.h>
 #include <ctype.h>
 #include <fcntl.h>
 
 #include "pw.h"
-#include "pwupd.h"
 
 #define debugging 0
 
@@ -306,7 +308,8 @@ read_userconfig(char const * file)
                                                ? (char *) bourne_shell : newstr(q);
                                        break;
                                case _UC_DEFAULTGROUP:
-                                       config.default_group = (q == NULL || !boolean_val(q, 1) || getgrnam(q) == NULL)
+                                       q = unquote(q);
+                                       config.default_group = (q == NULL || !boolean_val(q, 1) || GETGRNAM(q) == NULL)
                                                ? NULL : newstr(q);
                                        break;
                                case _UC_EXTRAGROUPS: