diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-10-07 21:49:45 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-10-07 21:49:45 +0000 |
commit | cfda696bbc8df635aaae7eae53b4b056e4e3fab6 (patch) | |
tree | b9a029e3606b75dd55601ffc64df5df4e7688933 /image.py | |
parent | c5a0a9b8a716679ed9aca0870eb23790dec4e329 (diff) | |
download | anaconda-cfda696bbc8df635aaae7eae53b4b056e4e3fab6.tar.gz anaconda-cfda696bbc8df635aaae7eae53b4b056e4e3fab6.tar.xz anaconda-cfda696bbc8df635aaae7eae53b4b056e4e3fab6.zip |
use R_OK instead of O_RDONLY for access calls. granted, it doesn't really
matter for us because the file's existence means we can read it (we're running
as root) and O_RDONLY = 0 and F_OK = 0, but while I'm fixing things in here,
I might as well be thorough
Diffstat (limited to 'image.py')
-rw-r--r-- | image.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -159,7 +159,7 @@ class CdromInstallMethod(ImageInstallMethod): try: if not isys.mount(dev, "/mnt/source", fstype = "iso9660", readOnly = 1): - if os.access("/mnt/source/.discinfo", os.O_RDONLY): + if os.access("/mnt/source/.discinfo", os.R_OK): f = open("/mnt/source/.discinfo") newStamp = f.readline().strip() try: @@ -204,7 +204,7 @@ class CdromInstallMethod(ImageInstallMethod): fstype = "iso9660", readOnly = 1) - if os.access("/mnt/source/.discinfo", os.O_RDONLY): + if os.access("/mnt/source/.discinfo", os.R_OK): f = open("/mnt/source/.discinfo") newStamp = f.readline().strip() try: @@ -294,7 +294,7 @@ class CdromInstallMethod(ImageInstallMethod): # figure out which disc is in. if we fail for any reason, # assume it's just disc1. - if os.access("/mnt/source/.discinfo", os.O_RDONLY): + if os.access("/mnt/source/.discinfo", os.R_OK): try: f = open("/mnt/source/.discinfo") self.timestamp = f.readline().strip() |