This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2 5/5] linux ttyname and ttyname_r: Add tests [BZ #22145]
- From: Luke Shumaker <lukeshu at lukeshu dot com>
- To: Luke Shumaker <lukeshu at parabola dot nu>
- Cc: libc-alpha at sourceware dot org, christian dot brauner at mailbox dot org
- Date: Wed, 08 Nov 2017 11:14:38 -0500
- Subject: Re: [PATCH v2 5/5] linux ttyname and ttyname_r: Add tests [BZ #22145]
- Authentication-results: sourceware.org; auth=none
- References: <20171102185346.1386-1-lukeshu@parabola.nu> <20171102185346.1386-6-lukeshu@parabola.nu>
On Thu, 02 Nov 2017 14:53:46 -0400,
Luke Shumaker wrote:
> + /* support_become_root might have put us in a new user namespace;
> + most filesystems (including tmpfs) don't allow file or directory
> + creation from a user namespace unless uid and gid maps are set,
> + even if we have root privileges in the namespace (failing with
> + EOVERFLOW, since the uid overflows the empty (0-length) uid map).
> +
> + Also, stat always reports that uid and gid maps are empty, so we
> + have to try actually reading from them to check if they are
> + empty. */
Style: two spaces after the trailing period. This mistake is
consistent throughout the file.
> + /* Depeding on how we set up the chroot, the kernel may or may not
> + * trim the leading path to the target (it may give us "/6",
> + * instead of "/dev/pts/6"). This test group relies on the target
> + * existing, so guarantee that (so create a file at "/6" if
> + * necessary). */
Style: no '*', two spaces after the trailing period.
Andreas Schwab made me aware of these style issues on the previous
commit.
--
Happy hacking,
~ Luke Shumaker