-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cd sometimes gives wrong error message when directory doesn't exist #33
Comments
I also have seen a lot of it. It's almost similar to proot-me/proot#138 but it's related with the unlink though. |
I couldn't reproduce your issue (I get --- a/src/path/canon.c
+++ b/src/path/canon.c
@@ -154,6 +154,11 @@ static inline int substitute_binding_stat(Tracee *tracee, Finality finality, uns
statl.st_mode = 0;
status = lstat(host_path, &statl);
+ /** Propagate EACCES to caller if it occured. */
+ if (status < 0 && errno == EACCES) {
+ return -errno;
+ }
+
/* Build the glue between the hostfs and the guestfs during
* the initialization of a binding. */
if (status < 0 && tracee->glue_type != 0) { However it looks like your issue isn't similar to that (in fact I'd say it's opposite of that: they are describing not getting I think i'd need full trace to see what's going on (substitute strace -s5000 -o trace.txt proot -v 9 $ARGS |
Ok, since you couldn't reproduce I did some more digging. The problem is I have I don't think this is a proot issue (or really a bug at all). I am going to close the ticket. |
Sometimes error message given is "Permission denied" instead of "No such file or directory" when attempting to cd to non-existent directory using full path.
With proot:
Without proot:
I am running proot as below:
The text was updated successfully, but these errors were encountered: