mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 16:26:12 +08:00
* pwdgrp.cc (pwdgrp::reparse): Declare.
* uinfo.cc (pwdgrp::reparse): Define. * grp.cc (pwdgrp::parse_group): Use.
This commit is contained in:
parent
4f7e12dd26
commit
a53ddfe6c2
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-01-25 Pierre Humblet <pierre.humblet@ieee.org>
|
||||||
|
|
||||||
* syscalls.cc (seteuid32): On Win95 get the pw entry. If it exists
|
* syscalls.cc (seteuid32): On Win95 get the pw entry. If it exists
|
||||||
|
@ -61,6 +61,7 @@ pwdgrp::parse_group ()
|
|||||||
char **namearray = (char **) calloc (i + 2, sizeof (char *));
|
char **namearray = (char **) calloc (i + 2, sizeof (char *));
|
||||||
if (namearray)
|
if (namearray)
|
||||||
{
|
{
|
||||||
|
reparse (dp);
|
||||||
for (i = 0; (dp = next_str (',')); i++)
|
for (i = 0; (dp = next_str (',')); i++)
|
||||||
namearray[i] = dp;
|
namearray[i] = dp;
|
||||||
namearray[i] = NULL;
|
namearray[i] = NULL;
|
||||||
|
@ -45,8 +45,9 @@ class pwdgrp
|
|||||||
void read_passwd ();
|
void read_passwd ();
|
||||||
void read_group ();
|
void read_group ();
|
||||||
char *add_line (char *);
|
char *add_line (char *);
|
||||||
char *pwdgrp::next_str (char = 0);
|
char *next_str (char = 0);
|
||||||
int pwdgrp::next_int (char = 0);
|
int next_int (char = 0);
|
||||||
|
void reparse (char *);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int curr_lines;
|
int curr_lines;
|
||||||
|
@ -410,6 +410,12 @@ pwdgrp::next_str (char c)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
pwdgrp::reparse (char *in_lptr)
|
||||||
|
{
|
||||||
|
lptr = in_lptr;
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
pwdgrp::next_int (char c)
|
pwdgrp::next_int (char c)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user