Removed SUID wrappers because glibtop_proc_argv_l is a client-side
* include/glibtop/procargs.h: * sysdeps/common/procargs.c: (glibtop_get_proc_argv_l): Removed SUID wrappers because glibtop_proc_argv_l is a client-side function that wraps glibtop_get_proc_args.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2004-11-13 Benoît Dejean <tazforever@dlfp.org>
|
||||||
|
|
||||||
|
* include/glibtop/procargs.h:
|
||||||
|
* sysdeps/common/procargs.c: (glibtop_get_proc_argv_l): Removed SUID
|
||||||
|
wrappers because glibtop_proc_argv_l is a client-side function that wraps
|
||||||
|
glibtop_get_proc_args.
|
||||||
|
|
||||||
2004-11-13 Benoît Dejean <tazforever@dlfp.org>
|
2004-11-13 Benoît Dejean <tazforever@dlfp.org>
|
||||||
|
|
||||||
* structures.def: Removed old functions. OMG, everything is really broken
|
* structures.def: Removed old functions. OMG, everything is really broken
|
||||||
|
@@ -85,28 +85,6 @@ glibtop_get_proc_argv_l (glibtop *server, glibtop_proc_args *buf,
|
|||||||
#define glibtop_get_proc_argv(proc_args,pid,max_len) glibtop_get_proc_argv_l(glibtop_global_server, proc_args, pid, max_len)
|
#define glibtop_get_proc_argv(proc_args,pid,max_len) glibtop_get_proc_argv_l(glibtop_global_server, proc_args, pid, max_len)
|
||||||
|
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROC_ARGS
|
|
||||||
|
|
||||||
# define glibtop_get_proc_argv_r glibtop_get_proc_args_p
|
|
||||||
# define glibtop_init_proc_argv_p glibtop_init_proc_args_p
|
|
||||||
|
|
||||||
char **
|
|
||||||
glibtop_get_proc_argv_p (glibtop *server, glibtop_proc_args *buf,
|
|
||||||
pid_t pid, unsigned max_len);
|
|
||||||
|
|
||||||
|
|
||||||
#else /* !GLIBTOP_SUID_PROC_ARGS */
|
|
||||||
|
|
||||||
# define glibtop_get_proc_argv_r glibtop_get_proc_args_s
|
|
||||||
# define glibtop_init_proc_argv_s glibtop_init_proc_args_s
|
|
||||||
|
|
||||||
char **
|
|
||||||
glibtop_get_proc_argv_s (glibtop *server, glibtop_proc_args *buf,
|
|
||||||
pid_t pid, unsigned max_len);
|
|
||||||
#endif /* GLIBTOP_SUID_PROC_ARGS */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef GLIBTOP_NAMES
|
#ifdef GLIBTOP_NAMES
|
||||||
|
|
||||||
/* You need to link with -lgtop_names to get this stuff here. */
|
/* You need to link with -lgtop_names to get this stuff here. */
|
||||||
|
@@ -41,26 +41,3 @@ glibtop_get_proc_argv_l (glibtop *server, glibtop_proc_args *buf,
|
|||||||
const char * const args0 = glibtop_get_proc_args_l(server, buf, pid, max_len);
|
const char * const args0 = glibtop_get_proc_args_l(server, buf, pid, max_len);
|
||||||
return split_args0(args0, buf->size);
|
return split_args0(args0, buf->size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROC_ARGS
|
|
||||||
|
|
||||||
char **
|
|
||||||
glibtop_get_proc_argv_p (glibtop *server, glibtop_proc_args *buf,
|
|
||||||
pid_t pid, unsigned max_len)
|
|
||||||
{
|
|
||||||
const char * const args0 = glibtop_get_proc_args_p(server, buf, pid, max_len);
|
|
||||||
return split_args0(args0, buf->size);
|
|
||||||
}
|
|
||||||
|
|
||||||
#else /* !GLIBTOP_SUID_PROC_ARGS */
|
|
||||||
|
|
||||||
char **
|
|
||||||
glibtop_get_proc_argv_s (glibtop *server, glibtop_proc_args *buf,
|
|
||||||
pid_t pid, unsigned max_len)
|
|
||||||
{
|
|
||||||
const char * const args0 = glibtop_get_proc_args_s(server, buf, pid, max_len);
|
|
||||||
return split_args0(args0, buf->size);
|
|
||||||
}
|
|
||||||
#endif /* GLIBTOP_SUID_PROC_ARGS */
|
|
||||||
|
Reference in New Issue
Block a user