summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-08-09 19:17:15 +0000
committerJeremy Katz <katzj@redhat.com>2001-08-09 19:17:15 +0000
commit4c888c4edfbfabc78fb50f5a10ff992c0c655b62 (patch)
treec5e85b24a423ec391fd2742461d038bf65e31ee6 /loader
parent3d30ae6ae73f93d90d5ef5d4d33c35155f3571dc (diff)
downloadanaconda-4c888c4edfbfabc78fb50f5a10ff992c0c655b62.tar.gz
anaconda-4c888c4edfbfabc78fb50f5a10ff992c0c655b62.tar.xz
anaconda-4c888c4edfbfabc78fb50f5a10ff992c0c655b62.zip
checking for non-executable files with X_OK... WHAT?
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/loader/loader.c b/loader/loader.c
index a044ea747..ba0cbf785 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1130,7 +1130,7 @@ static char * mountNfsImage(struct installMethod * method,
stage = NFS_STAGE_NFS;
if (!doPwMount(fullPath, "/mnt/source", "nfs", 1, 0, NULL, NULL)) {
- if (!access("/mnt/source/RedHat/base/stage2.img", X_OK)) {
+ if (!access("/mnt/source/RedHat/base/stage2.img", R_OK)) {
if (!mountLoopback("/mnt/source/RedHat/base/stage2.img",
"/mnt/runtime", "loop0")) {
stage = NFS_STAGE_DONE;
@@ -2689,8 +2689,8 @@ int main(int argc, char ** argv) {
#endif
if (!continuing) {
- if ((access("/proc/bus/pci/devices", X_OK) &&
- access("/proc/openprom", X_OK)) || FL_MODDISK(flags)) {
+ if ((access("/proc/bus/pci/devices", R_OK) &&
+ access("/proc/openprom", R_OK)) || FL_MODDISK(flags)) {
startNewt(flags);
devLoadDriverDisk(modInfo, modLoaded, &modDeps, flags, 1, 1,
floppyDevice);
@@ -2840,8 +2840,8 @@ int main(int argc, char ** argv) {
busProbe(modInfo, modLoaded, modDeps, 0, &kd, flags);
- if (((access("/proc/bus/pci/devices", X_OK) &&
- access("/proc/openprom", X_OK)) ||
+ if (((access("/proc/bus/pci/devices", R_OK) &&
+ access("/proc/openprom", R_OK)) ||
FL_ISA(flags) || FL_NOPROBE(flags)) && !ksFile) {
startNewt(flags);
manualDeviceCheck(modInfo, modLoaded, &modDeps, &kd, flags);