Re: [PATCH 1/1] procfs: expose umask in stat and status
From: Stephen Rothwell
Date: Sat May 05 2012 - 00:54:00 EST
Hi Pierre,
On Sat, 5 May 2012 04:50:27 +0200 Pierre Carrier <pierre@xxxxxxxxxxx> wrote:
>
> + umask = get_task_umask(p);
> + if (umask >= 0)
> + seq_printf(m, "Umask:\t0%o\n", umask);
Why not use "Umask:\t%#o\n" ? that way you don't get two zeros if the
umask is zero.
--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/
Attachment:
pgp00000.pgp
Description: PGP signature