xiaoxiang781216 commented on code in PR #3735:
URL: https://github.com/apache/nuttx-apps/pull/3735#discussion_r3834962706


##########
nshlib/nsh_envcmds.c:
##########
@@ -324,6 +324,64 @@ int cmd_cd(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char 
**argv)
 }
 #endif
 
+/****************************************************************************
+ * Name: cmd_chroot
+ ****************************************************************************/
+
+#if defined(CONFIG_FS_CHROOT) && !defined(CONFIG_NSH_DISABLE_CHROOT)
+int cmd_chroot(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)

Review Comment:
   @Abhishekmishra2808 it's better to implement chroot to a standalone command 
since nsh doesn't has the root permission normally.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to