From 954a9b1a4c3a6f5ddd801d273cb1de1bed62c218 Mon Sep 17 00:00:00 2001 From: rread Date: Thu, 10 Oct 2002 17:44:17 +0000 Subject: [PATCH] * don't open for writing --- lustre/utils/lconf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(): -- 1.8.3.1