diff options
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -548,7 +548,7 @@ asmlinkage long sys_chroot(const char __user * filename) | |||
548 | struct nameidata nd; | 548 | struct nameidata nd; |
549 | int error; | 549 | int error; |
550 | 550 | ||
551 | error = __user_walk(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY | LOOKUP_NOALT, &nd); | 551 | error = __user_walk(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &nd); |
552 | if (error) | 552 | if (error) |
553 | goto out; | 553 | goto out; |
554 | 554 | ||
@@ -561,7 +561,6 @@ asmlinkage long sys_chroot(const char __user * filename) | |||
561 | goto dput_and_out; | 561 | goto dput_and_out; |
562 | 562 | ||
563 | set_fs_root(current->fs, &nd.path); | 563 | set_fs_root(current->fs, &nd.path); |
564 | set_fs_altroot(); | ||
565 | error = 0; | 564 | error = 0; |
566 | dput_and_out: | 565 | dput_and_out: |
567 | path_put(&nd.path); | 566 | path_put(&nd.path); |