* grp.cc (read_etc_group): Open file in text mode.
* pwd.cc (read_etc_passwd): Ditto. * shared.h: Bump PROC_MAGIC.
This commit is contained in:
parent
749bdbe92a
commit
84a1af74a2
@ -1,3 +1,9 @@
|
|||||||
|
Sat Jun 24 23:43:06 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* grp.cc (read_etc_group): Open file in text mode.
|
||||||
|
* pwd.cc (read_etc_passwd): Ditto.
|
||||||
|
* shared.h: Bump PROC_MAGIC.
|
||||||
|
|
||||||
Sat Jun 24 19:30:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
Sat Jun 24 19:30:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fork.cc (fork): Fix error in copying SID pointer.
|
* fork.cc (fork): Fix error in copying SID pointer.
|
||||||
|
@ -131,7 +131,7 @@ read_etc_group ()
|
|||||||
strncpy (group_name, "Administrators", sizeof (group_name));
|
strncpy (group_name, "Administrators", sizeof (group_name));
|
||||||
|
|
||||||
++group_sem;
|
++group_sem;
|
||||||
FILE *f = fopen (etc_group, "r");
|
FILE *f = fopen (etc_group, "rt");
|
||||||
--group_sem;
|
--group_sem;
|
||||||
|
|
||||||
if (f)
|
if (f)
|
||||||
|
@ -109,7 +109,7 @@ read_etc_passwd ()
|
|||||||
extern int passwd_sem;
|
extern int passwd_sem;
|
||||||
char linebuf[1024];
|
char linebuf[1024];
|
||||||
++passwd_sem;
|
++passwd_sem;
|
||||||
FILE *f = fopen ("/etc/passwd", "r");
|
FILE *f = fopen ("/etc/passwd", "rt");
|
||||||
--passwd_sem;
|
--passwd_sem;
|
||||||
|
|
||||||
if (f)
|
if (f)
|
||||||
|
@ -172,7 +172,7 @@ pinfo *__stdcall procinfo (int n);
|
|||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
PROC_MAGIC = 0xaf07f000,
|
PROC_MAGIC = 0xaf08f000,
|
||||||
PROC_FORK = PROC_MAGIC + 1,
|
PROC_FORK = PROC_MAGIC + 1,
|
||||||
PROC_EXEC = PROC_MAGIC + 2,
|
PROC_EXEC = PROC_MAGIC + 2,
|
||||||
PROC_SPAWN = PROC_MAGIC + 3,
|
PROC_SPAWN = PROC_MAGIC + 3,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user