The check for EROFS was wrong. For example, if you try to mount a filesystem
authorRob Landley <rob@landley.net>
Tue, 11 Oct 2005 07:26:15 +0000 (07:26 -0000)
committerRob Landley <rob@landley.net>
Tue, 11 Oct 2005 07:26:15 +0000 (07:26 -0000)
commitff567f7943f50b88dea14cd27636168ba2d319b5
tree78de3691d83082ad26c2b2c02cc60d46bd912ed8
parent554a9ff7eaf60bcb960a5f0670a9ed74db2f3292
The check for EROFS was wrong.  For example, if you try to mount a filesystem
appended to an executable that's being run (yes, I'm doing this) you get
EPERM, but mounting readonly fixes it.  Doing the fallback all the time
shouldn't hurt, and is one less test.
libbb/loop.c