Messages in this thread | | | Date | Sat, 5 May 2012 14:53:09 +1000 | From | Stephen Rothwell <> | Subject | Re: [PATCH 1/1] procfs: expose umask in stat and status |
| |
Hi Pierre,
On Sat, 5 May 2012 04:50:27 +0200 Pierre Carrier <pierre@spotify.com> 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@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ [unhandled content-type:application/pgp-signature] | |