if ((permission(inode, MAY_WRITE, NULL) != 0) 
if ((file_permission(file, MAY_WRITE) != 0) 
ncp_get_fs_info_v2(struct ncp_server* server, struct inode* inode, struct ncp_fs_info_v2 __user * arg){	struct ncp_fs_info_v2 info2;	if ((permission(inode, MAY_WRITE, NULL) != 0)	    && (current->uid != server->m.mounted_uid)) {		return -EACCES;	}	if (copy_from_user(&info2, arg, sizeof(info2)))		return -EFAULT;	if (info2.version != NCP_GET_FS_INFO_VERSION_V2) {		DPRINTK("info.version invalid: %d\n", info2.version);		return -EINVAL;	}	info2.mounted_uid   = server->m.mounted_uid;	info2.connection    = server->connection;	info2.buffer_size   = server->buffer_size;	info2.volume_number = NCP_FINFO(inode)->volNumber;	info2.directory_id  = NCP_FINFO(inode)->DosDirNum;	info2.dummy1 = info2.dummy2 = info2.dummy3 = 0;	if (copy_to_user(arg, &info2, sizeof(info2)))		return -EFAULT;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/8c744fb83da0771afa04695028e3550b798dad90/ioctl.c/buggy/fs/ncpfs/ioctl.c