<div>Hi.</div><div>The patch has an error and I attach again.</div><div> </div><div> </div><div>diff --git a/toys/other/mountpoint.c b/toys/other/mountpoint.c<br>index 150865c..4dff978 100644<br>--- a/toys/other/mountpoint.c<br>+++ b/toys/other/mountpoint.c<br>@@ -33,7 +33,8 @@ void mountpoint_main(void)<br> char *arg = *toys.optargs;<br> int quiet = toys.optflags & FLAG_q;<br> <br>- if (lstat(arg, &st1)) perror_exit("%s", arg);<br>+ if (((toys.optflags & FLAG_x) ? stat:lstat)(arg, &st1)) <br>+ perror_exit("%s", arg);<br> <br> if (toys.optflags & FLAG_x) {<br> if (S_ISBLK(st1.st_mode)) {<br>-- </div><div> </div><div> </div><div><br> </div><div class="gmail_quote">2015-05-06 17:34 GMT+09:00 Hyejin Kim <span dir="ltr"><<a href="mailto:hj8296@gmail.com" target="_blank">hj8296@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div>Hi. </div><div> </div><div>Mountpoint doesnt support symlink argument now.</div><div>For example, "mountpoint -x symlink_path" displays wrong output.</div><div> </div><div>plz have a look.</div><div> </div><div> </div><div> </div><div>diff --git a/toys/other/mountpoint.c b/toys/other/mountpoint.c<br>index 150865c..d7432c9 100644<br>--- a/toys/other/mountpoint.c<br>+++ b/toys/other/mountpoint.c<br>@@ -33,7 +33,8 @@ void mountpoint_main(void)<br> char *arg = *toys.optargs;<br> int quiet = toys.optflags & FLAG_q;<br> <br>- if (lstat(arg, &st1)) perror_exit("%s", arg);<br>+ if ((toys.optflags & FLAG_x) && stat(arg, &st1) || lstat(arg, &st1)) <br>+ perror_exit("%s", arg);<br> <br> if (toys.optflags & FLAG_x) {<br> if (S_ISBLK(st1.st_mode)) {<br>-- </div>
</blockquote></div><br>