Mercurial > pidgin
diff src/core.c @ 2503:b4ac3b5f484b
[gaim-migrate @ 2516]
there
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 14 Oct 2001 19:43:25 +0000 |
parents | 7e4757801725 |
children | 8229710b343b |
line wrap: on
line diff
--- a/src/core.c Sun Oct 14 18:31:29 2001 +0000 +++ b/src/core.c Sun Oct 14 19:43:25 2001 +0000 @@ -408,7 +408,7 @@ gint fd; if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) != -1) { - umask(0177); + mode_t m = umask(0177); saddr.sun_family = AF_UNIX; g_snprintf(saddr.sun_path, 108, "%s/gaim_%s.%d", g_get_tmp_dir(), g_get_user_name(), getpid()); @@ -418,6 +418,7 @@ g_log(NULL, G_LOG_LEVEL_CRITICAL, "Failed to assign %s to a socket (Error: %s)", saddr.sun_path, strerror(errno)); + umask(m); } else g_log(NULL, G_LOG_LEVEL_CRITICAL, "Unable to open socket: %s", strerror(errno)); return fd;