[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] chroot specify user/group feature
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] chroot specify user/group feature |
Date: |
Wed, 20 May 2009 16:03:48 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Giuseppe Scrivano wrote:
> diff --git a/src/chroot.c b/src/chroot.c
> +
> +#ifndef GID_T_MAX
> +# define GID_T_MAX TYPE_MAXIMUM (gid_t)
> +#endif
The above is redundant and already done in system.h
> +
> +#ifndef MAXGID
> +# define MAXGID GID_T_MAX
> +#endif
Why add the new MAXGID name?
> + if (userspec)
> + {
> + uid_t uid;
> + gid_t gid;
> + char *user;
> + char *group;
> + const char *err = parse_user_spec (userspec, &uid, &gid, &user,
> &group);
> + if (err)
> + {
> + perror (err);
> + exit (1);
> + }
Probably should use error(EXIT_FAILURE, ...) instead of perror();
cheers,
Pádraig.
- Re: [PATCH] chroot specify user/group feature, (continued)
- Re: [PATCH] chroot specify user/group feature, Jim Meyering, 2009/05/26
- Re: [PATCH] chroot specify user/group feature, Eric Blake, 2009/05/27
- Re: [PATCH] chroot specify user/group feature, Giuseppe Scrivano, 2009/05/27
- Re: [PATCH] chroot specify user/group feature, Jim Meyering, 2009/05/27
- Re: [PATCH] chroot specify user/group feature, Giuseppe Scrivano, 2009/05/28
- Re: [PATCH] chroot specify user/group feature, Eric Blake, 2009/05/28
- Re: [PATCH] chroot specify user/group feature, Giuseppe Scrivano, 2009/05/28
- two new chroot bugs, Jim Meyering, 2009/05/27
- Re: two new chroot bugs, Jim Meyering, 2009/05/27
- Re: two new chroot bugs, Jim Meyering, 2009/05/29
- Re: [PATCH] chroot specify user/group feature,
Pádraig Brady <=
- Re: [PATCH] chroot specify user/group feature, Jim Meyering, 2009/05/20
- Re: [PATCH] chroot specify user/group feature, Giuseppe Scrivano, 2009/05/20