X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fguestfsd.c;h=7eabbd4710c0f7d5f26879d3475ff93aa440d68a;hb=e909c5e31f6b60e68220177b5cd5e81cfacb8d0d;hp=030aabea399f445556bee7de8b9dcfb457142617;hpb=6654f617a6f720baa8f1ced89179e11679353d1e;p=libguestfs.git diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index 030aabe..7eabbd4 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -160,6 +160,9 @@ main (int argc, char *argv[]) setenv ("SHELL", "/bin/sh", 1); setenv ("LANG", "C", 1); + /* We document that umask defaults to 022 (it should be this anyway). */ + umask (022); + /* Resolve the hostname. */ memset (&hints, 0, sizeof hints); hints.ai_socktype = SOCK_STREAM;