From 44fe5c1da8a1d4e90909ba1d06af60c9edfa8c59 Mon Sep 17 00:00:00 2001 From: rd235 Date: Mon, 22 Jun 2009 20:58:58 +0000 Subject: [PATCH] 2.6.30 bugfix: current->fs->umask is no longer supported current_umask() must be used instead git-svn-id: https://vde.svn.sourceforge.net/svnroot/vde/trunk@369 d37a7db1-d92d-0410-89df-f68f52f87b57 --- ipn/af_ipn.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipn/af_ipn.c b/ipn/af_ipn.c index 6442905..8fd27d5 100644 --- a/ipn/af_ipn.c +++ b/ipn/af_ipn.c @@ -556,7 +556,11 @@ static int ipn_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) mode = ipn_node->pbp->mode; else mode = SOCK_INODE(sock)->i_mode; +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30) mode = S_IFSOCK | (mode & ~current->fs->umask); +#else + mode = S_IFSOCK | (mode & ~current_umask()); +#endif #ifndef IPN_PRE2625 #ifdef APPARMOR err = vfs_mknod(nd.path.dentry->d_inode, dentry, nd.path.mnt, mode, 0); -- 2.11.4.GIT