[PATCH] Re: Parent directory's permissions in mini-status

Pavel Tsekov ptsekov at gmx.net
Mon Mar 28 18:48:47 UTC 2005


Hello,

On Mon, 28 Mar 2005, Pavel Tsekov wrote:

> I guess this is related to the following hunk:
>
> @@ -481,7 +492,7 @@ do_load_dir (const char *path, dir_list
>      while ((dp = mc_readdir (dirp))) {
>         status =
>             handle_dirent (list, filter, dp, &st, next_free, &link_to_dir,
> -                          &stale_link);
> +                          &stale_link, strcmp(path, "/") != 0);
>         if (status == 0)
>             continue;
>         if (status == -1) {
>
> Finding that MC will misbehave was relatively easy by just reading the
> source. It should have been much easier to find out by simply testing.

Please, disregard this part. The patch doesn't work but that is because
some filesystems (like those mentioned in the original message) do not
have `.' and `..' entries.



More information about the mc-devel mailing list