X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fguestfsd.c;h=7eabbd4710c0f7d5f26879d3475ff93aa440d68a;hb=0884d8bbae6d76a603ec1385ada2938f88981c5c;hp=030aabea399f445556bee7de8b9dcfb457142617;hpb=f850e1f065fb04df7cc87a921ab3c658741cc393;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;