summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiroslav Lichvar <mlichvar@redhat.com>2011-04-01 15:55:20 +0200
committerMiroslav Lichvar <mlichvar@redhat.com>2011-04-04 15:11:21 +0200
commit5b5056f681b1d70ebc0ed613e56c1c3820b55fc4 (patch)
tree2cecc2424a33dab26559cd1d388d48c8372a59c0
parent1276dd0bf10d089b89571900a27a9ff7a8187f16 (diff)
downloadabrt-5b5056f681b1d70ebc0ed613e56c1c3820b55fc4.zip
abrt-5b5056f681b1d70ebc0ed613e56c1c3820b55fc4.tar.gz
abrt-5b5056f681b1d70ebc0ed613e56c1c3820b55fc4.tar.xz
abrt-cli: don't require write permissions on dumpdir to print info
-rw-r--r--src/cli/cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/cli.c b/src/cli/cli.c
index 1de0e54..8e3ad78 100644
--- a/src/cli/cli.c
+++ b/src/cli/cli.c
@@ -414,7 +414,7 @@ int main(int argc, char** argv)
case OPT_INFO:
{
/* Load crash_data from dump dir */
- struct dump_dir *dd = dd_opendir(dump_dir_name, /*flags:*/ 0);
+ struct dump_dir *dd = dd_opendir(dump_dir_name, DD_OPEN_READONLY);
if (!dd)
return -1;
@@ -437,7 +437,7 @@ int main(int argc, char** argv)
return 1;
/* Reload crash_data from (possibly updated by analyze) dump dir */
- dd = dd_opendir(dump_dir_name, /*flags:*/ 0);
+ dd = dd_opendir(dump_dir_name, DD_OPEN_READONLY);
if (!dd)
return -1;
} else