ALT Linux Bugzilla
– Attachment 140 Details for
Bug 1590
ps print wrong process UID
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
0001590-euid_test.c
0001590-euid_test.c (text/x-csrc), 562 bytes, created by
Igor Homyakov
on 2002-11-20 17:01:23 MSK
(
hide
)
Description:
0001590-euid_test.c
Filename:
MIME Type:
Creator:
Igor Homyakov
Created:
2002-11-20 17:01:23 MSK
Size:
562 bytes
patch
obsolete
>/* -*- C -*- > * > * $Id$ > * > * Author: Igor Homyakov <homyakov@ramax.spb.ru> > * > * Created: Tue Nov 19 15:02:05 2002 > * > * Comments: stupid test > * > */ > >#include <stdio.h> >#include <unistd.h> >#include <sys/types.h> >#include <errno.h> > >int >main (int argc, char* argv[]) >{ > uid_t euid = 113; > unsigned int timeout = 30; > > if ( seteuid( euid ) == -1 ) { > perror("seteuid err:"); > exit(1); > } else { > (void)printf( "running: pid %d, uid %d, euid %d\n", getpid(), getuid(), geteuid()); > (void)sleep( timeout ); > } > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1590
: 140