patch-2.3.99-pre4 linux/fs/ioctl.c
Next file: linux/fs/lockd/clntlock.c
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Sun Apr 2 15:53:28 2000
- Orig file:
v2.3.99-pre3/linux/fs/ioctl.c
- Orig date:
Thu Feb 10 17:11:17 2000
diff -u --recursive --new-file v2.3.99-pre3/linux/fs/ioctl.c linux/fs/ioctl.c
@@ -98,9 +98,7 @@
default:
error = -ENOTTY;
- if (!filp->f_dentry || !filp->f_dentry->d_inode)
- error = -ENOENT;
- else if (S_ISREG(filp->f_dentry->d_inode->i_mode))
+ if (S_ISREG(filp->f_dentry->d_inode->i_mode))
error = file_ioctl(filp, cmd, arg);
else if (filp->f_op && filp->f_op->ioctl)
error = filp->f_op->ioctl(filp->f_dentry->d_inode, filp, cmd, arg);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)