No subject


Thu Nov 15 09:34:07 CST 2007


        else if (!stat( entry->mnt_fsname, &st ) && S_ISREG(st.st_mode))
        {
            /* if device is a regular file check for a loop mount */
            if ((device = strstr( entry->mnt_opts, "loop=" )))
            {
                char *p = strchr( device + 5, ',' );
                if (p) *p = 0;
                return device + 5;
            }
        }

I'm not sure if this has any advantage, but it has a big inconvenient.  It's
almost certain that /dev/loop0 is owned by root and not world-readable, and
it's also mostly certain that wine isn't being run as root.  If the image is
user-owned, by using the loop device we lose the ability to read it.

This typicaly causes breakage that is difficult to figure out.  For example,
see
http://appdb.winehq.org/objectManager.php?sClass=version&iId=727&iTestingId=13845

Note: I'm filing this separate from bug 10957 because it's an unrelated issue. 
The patch I'm attaching here collides with the one I sent for bug 10957, but
takes both situations into account.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list