diff options
author | unknown <sasha@mysql.sashanet.com> | 2001-11-08 22:29:29 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2001-11-08 22:29:29 -0700 |
commit | 83aeee648aa923aa1ff1d4eb2e314347fb836d2d (patch) | |
tree | ddc3008d1dd33c61d47ae1486267fccba0a55729 /mysys | |
parent | 1c809563c2ba3576e4584eda06125bf8a15850ee (diff) | |
parent | cc9076f1d8615027880662fed651562187c0c6b8 (diff) | |
download | mariadb-git-83aeee648aa923aa1ff1d4eb2e314347fb836d2d.tar.gz |
Merge work:/home/bk/mysql-4.0
into mysql.sashanet.com:/home/sasha/src/bk/mysql-4.0
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_lib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysys/my_lib.c b/mysys/my_lib.c index 55bd42381da..5e9093d0124 100644 --- a/mysys/my_lib.c +++ b/mysys/my_lib.c @@ -112,6 +112,10 @@ MY_DIR *my_dir(const char *path, myf MyFlags) dirp = opendir(directory_file_name(tmp_path,(my_string) path)); size = STARTSIZE; +#if defined(__amiga__) + if ((dirp->dd_fd) < 0) /* Directory doesn't exists */ + goto error; +#endif if (dirp == NULL || ! (buffer = (char *) my_malloc(size, MyFlags))) goto error; |