mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
support: Use const char * argument in support_capture_subprogram_self_sgid
The function does not modify the passed-in string, so make this clear via the prototype. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@@ -110,7 +110,7 @@ support_capture_subprogram (const char *file, char *const argv[],
|
||||
safely make it SGID with the TARGET group ID. Then runs the
|
||||
executable. */
|
||||
static int
|
||||
copy_and_spawn_sgid (char *child_id, gid_t gid)
|
||||
copy_and_spawn_sgid (const char *child_id, gid_t gid)
|
||||
{
|
||||
char *dirname = xasprintf ("%s/tst-tunables-setuid.%jd",
|
||||
test_dir, (intmax_t) getpid ());
|
||||
@@ -182,7 +182,7 @@ copy_and_spawn_sgid (char *child_id, gid_t gid)
|
||||
ret = 0;
|
||||
infd = outfd = -1;
|
||||
|
||||
char * const args[] = {execname, child_id, NULL};
|
||||
char * const args[] = {execname, (char *) child_id, NULL};
|
||||
|
||||
status = support_subprogram_wait (args[0], args);
|
||||
|
||||
@@ -211,7 +211,7 @@ err:
|
||||
}
|
||||
|
||||
int
|
||||
support_capture_subprogram_self_sgid (char *child_id)
|
||||
support_capture_subprogram_self_sgid (const char *child_id)
|
||||
{
|
||||
gid_t target = 0;
|
||||
const int count = 64;
|
||||
|
Reference in New Issue
Block a user