--- linux-work/fs/nfs/dir.c-o Wed Apr 18 17:59:16 2001 +++ linux-work/fs/nfs/dir.c Wed May 23 13:17:53 2001 @@ -454,8 +454,9 @@ */ static loff_t nfs_dir_llseek(struct file *file, loff_t offset, int origin) { - /* We disallow SEEK_CUR and SEEK_END */ - if (origin != 0) + if (origin == 1 && offset == 0) + return offset; + else if (origin != 0) return -EINVAL; if (offset != file->f_pos) { file->f_pos = offset;