projects
/
profile
/
ivi
/
eet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
805870b
)
made eet_list() fail when the file isn't opened read-only or read-write
author
tsauerbeck
<tsauerbeck>
Mon, 7 Feb 2005 18:11:49 +0000
(18:11 +0000)
committer
tsauerbeck
<tsauerbeck@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 7 Feb 2005 18:11:49 +0000
(18:11 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/eet@13231
7cbeb6ba
-43b4-40fd-8cce-
4c39aea84d33
src/lib/eet_lib.c
patch
|
blob
|
history
diff --git
a/src/lib/eet_lib.c
b/src/lib/eet_lib.c
index
fd7ef71
..
9313648
100644
(file)
--- a/
src/lib/eet_lib.c
+++ b/
src/lib/eet_lib.c
@@
-1026,7
+1026,9
@@
eet_list(Eet_File *ef, char *glob, int *count_ret)
/* check to see its' an eet file pointer */
if ((!ef) || (ef->magic != EET_MAGIC_FILE) || (!glob) ||
- (!ef->header) || (!ef->header->directory))
+ (!ef->header) || (!ef->header->directory) ||
+ ((ef->mode != EET_FILE_MODE_READ) &&
+ (ef->mode != EET_FILE_MODE_RW)))
{
if (count_ret) *count_ret = 0;
return NULL;