Changeset 4da3fef4 in rtems


Ignore:
Timestamp:
May 29, 2012, 2:11:46 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
f7f2eb5
Parents:
847ad44
git-author:
Sebastian Huber <sebastian.huber@…> (05/29/12 14:11:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/29/12 14:18:44)
Message:

ftpd: Set current directory after session close

The chroot() is an implicit chdir("/"). Set the current directory to
"/" after session close. This helps to avoid references to mounted file
systems in dynamic media.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ftpd/ftpd.c

    r847ad44 r4da3fef4  
    18911891
    18921892    chroot_made = chroot_made || chroot(ftpd_root) == 0;
    1893     chdir("/");
    18941893
    18951894    errno = 0;
     
    19271926    free(info->pass);
    19281927    task_pool_release(info);
     1928
     1929    chdir("/");
    19291930  }
    19301931}
Note: See TracChangeset for help on using the changeset viewer.