I think the film should be essentially ruined. The sun gives off a wide ray of EM radiation - when the camera shutter opens, the film should be bombarded with this radiation - ruining the film.
As cjameshuff points out, the sun doesn't put out much X radiation. Why? It's simply not hot enough. For an object to emit significant thermal x-rays it must be heated to millions of degrees; the sun's photosphere is only about 5800 K.
Only solar flares do this. Energy stored in a portion of its magnetic field is suddenly dumped into a small pocket of plasma, heating it to several million degrees. They show up as bright spots on an otherwise dark sun when photographed from space in far ultraviolet and x-ray light. That's the primary role of spacecraft like STEREO and SDO, as these wavelengths do not penetrate the earth's atmosphere.
A sufficiently strong flare can produce enough X radiation to significantly increase the ionization in a layer of the earth's atmosphere called the "D" layer, sometimes resulting in a complete HF radio blackout. These flares can also eject clouds of charged particles that may or may not hit the earth/moon system in hours to days. Had the worst of them occurred during an Apollo mission, film
would have been fogged and astronauts
would have gotten sick or even died from radiation poisoning. Fortunately, that didn't happen. The typical doses were only 0.1 to 1.0 rem (1 to 10 mSv). It takes about 100 rem (1 Sv) to get acutely sick.