Revision 0a7fc983 block/bochs.c

b/block/bochs.c
116 116
    struct bochs_header bochs;
117 117
    struct bochs_header_v1 header_v1;
118 118

  
119
    fd = open(filename, O_RDWR | O_BINARY);
119
    fd = open(filename, O_RDONLY | O_BINARY);
120 120
    if (fd < 0) {
121
        fd = open(filename, O_RDONLY | O_BINARY);
122
        if (fd < 0)
123
            return -1;
121
        return -1;
124 122
    }
125 123

  
126 124
    bs->read_only = 1; // no write support yet

Also available in: Unified diff