Update of /cvsroot/gaim/gaim/src
In directory usw-pr-cvs1:/tmp/cvs-serv20712
Modified Files:
core.c
Log Message:
there
Index: core.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/core.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- core.c 2001/10/11 07:19:20 1.13
+++ core.c 2001/10/14 19:43:25 1.14
@@ -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;
|