patch-2.4.3 linux/fs/namei.c
Next file: linux/fs/ncpfs/dir.c
Previous file: linux/fs/minix/inode.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Thu Mar 22 11:07:58 2001
- Orig file:
v2.4.2/linux/fs/namei.c
- Orig date:
Fri Dec 29 14:07:23 2000
diff -u --recursive --new-file v2.4.2/linux/fs/namei.c linux/fs/namei.c
@@ -1013,7 +1013,7 @@
error = -ELOOP;
if (flag & O_NOFOLLOW)
goto exit_dput;
- do __follow_down(&nd->mnt,&dentry); while(d_mountpoint(dentry));
+ while (__follow_down(&nd->mnt,&dentry) && d_mountpoint(dentry));
}
error = -ENOENT;
if (!dentry->d_inode)
@@ -1927,13 +1927,11 @@
* bloody create() on broken symlinks. Furrfu...
*/
name = __getname();
- if (IS_ERR(name))
- goto fail_name;
+ if (!name)
+ return -ENOMEM;
strcpy(name, nd->last.name);
nd->last.name = name;
return 0;
-fail_name:
- link = name;
fail:
path_release(nd);
return PTR_ERR(link);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)