patch-2.1.51 linux/fs/ncpfs/inode.c
Next file: linux/fs/ncpfs/mmap.c
Previous file: linux/fs/ncpfs/file.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Fri Aug 15 12:51:03 1997
- Orig file:
v2.1.50/linux/fs/ncpfs/inode.c
- Orig date:
Thu Jun 26 12:33:39 1997
diff -u --recursive --new-file v2.1.50/linux/fs/ncpfs/inode.c linux/fs/ncpfs/inode.c
@@ -165,7 +165,7 @@
}
if ((data->ncp_fd >= NR_OPEN)
|| ((ncp_filp = current->files->fd[data->ncp_fd]) == NULL)
- || (!S_ISSOCK(ncp_filp->f_inode->i_mode))) {
+ || (!S_ISSOCK(ncp_filp->f_dentry->d_inode->i_mode))) {
printk("ncp_read_super: invalid ncp socket\n");
sb->s_dev = 0;
return NULL;
@@ -234,8 +234,8 @@
ncp_init_root(server);
- if (!(sb->s_mounted = iget(sb, ncp_info_ino(server,
- &(server->root))))) {
+ if (!(sb->s_root = d_alloc_root(iget(sb,ncp_info_ino(server,
+ &(server->root))),NULL))) {
sb->s_dev = 0;
printk("ncp_read_super: get root inode failed\n");
goto disconnect;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov