From: rread Date: Thu, 10 Oct 2002 17:44:17 +0000 (+0000) Subject: * don't open for writing X-Git-Tag: v1_7_100~4551 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=954a9b1a4c3a6f5ddd801d273cb1de1bed62c218;p=fs%2Flustre-release.git * don't open for writing --- diff --git a/lustre/utils/lconf b/lustre/utils/lconf index 6d27904..a06ea98 100755 --- a/lustre/utils/lconf +++ b/lustre/utils/lconf @@ -1575,8 +1575,8 @@ def main(): args = parse_cmdline(sys.argv[1:]) if len(args) > 0: - if not os.access(args[0], os.R_OK | os.W_OK): - print 'File not found:', args[0] + if not os.access(args[0], os.R_OK): + print 'File not found or readable:', args[0] sys.exit(1) dom = xml.dom.minidom.parse(args[0]) elif config.url():