[Libguestfs] [PATCH] umask: Use /proc/<PID>/status to read umask in Linux >= 4.7.
Richard W.M. Jones
rjones at redhat.com
Mon May 23 09:27:58 UTC 2016
On Mon, May 23, 2016 at 12:12:21PM +0300, Roman Kagan wrote:
> On Sat, May 21, 2016 at 01:14:40PM +0100, Richard W.M. Jones wrote:
> > + path = safe_asprintf (g, "/proc/%d/status", getpid ());
>
> Why not "/proc/self/status"?
Hmm indeed why not :-(
I will fix it ...
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
More information about the Libguestfs
mailing list