mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 09:07:52 +08:00
ftpd: Go back to the root directory
This commit is contained in:
@@ -1958,6 +1958,14 @@ session(rtems_task_argument arg)
|
||||
send_reply(info, 421, "Service not available, closing control connection.");
|
||||
}
|
||||
|
||||
/*
|
||||
* Go back to the root directory. A use case is to release a current
|
||||
* directory in a mounted file system on dynamic media, e.g. USB stick.
|
||||
* The return value can be ignored since the next session will try do the
|
||||
* operation again and an error check is performed in this case.
|
||||
*/
|
||||
chdir("/");
|
||||
|
||||
/* Close connection and put ourselves back into the task pool. */
|
||||
close_data_socket(info);
|
||||
close_stream(info);
|
||||
|
||||
Reference in New Issue
Block a user