* uinfo.cc (pwdgrp::reparse): Define.
* grp.cc (pwdgrp::parse_group): Use.
+2003-01-25 Christopher Faylor <cgf@redhat.com>
+
+ * pwdgrp.cc (pwdgrp::reparse): Declare.
+ * uinfo.cc (pwdgrp::reparse): Define.
+ * grp.cc (pwdgrp::parse_group): Use.
+
2003-01-25 Pierre Humblet <pierre.humblet@ieee.org>
* syscalls.cc (seteuid32): On Win95 get the pw entry. If it exists
char **namearray = (char **) calloc (i + 2, sizeof (char *));
if (namearray)
{
+ reparse (dp);
for (i = 0; (dp = next_str (',')); i++)
namearray[i] = dp;
namearray[i] = NULL;
void read_passwd ();
void read_group ();
char *add_line (char *);
- char *pwdgrp::next_str (char = 0);
- int pwdgrp::next_int (char = 0);
+ char *next_str (char = 0);
+ int next_int (char = 0);
+ void reparse (char *);
public:
int curr_lines;
return res;
}
+void
+pwdgrp::reparse (char *in_lptr)
+{
+ lptr = in_lptr;
+}
+
int
pwdgrp::next_int (char c)
{