From 73deab1a633ddc2a3ca3c5943622c2a5854677bf Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 29 Jul 2009 11:23:08 +0200 Subject: Add handling of afc_remove_path's unknown error code which is an ENOTEMPTY --- src/AFC.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/AFC.c') diff --git a/src/AFC.c b/src/AFC.c index 6a58686..826c9e5 100644 --- a/src/AFC.c +++ b/src/AFC.c @@ -500,6 +500,10 @@ afc_error_t afc_remove_path(afc_client_t client, const char *path) if (response) free(response); + /* special case; unknown error actually means directory not empty */ + if (ret == AFC_E_UNKNOWN_ERROR) + ret = AFC_E_DIR_NOT_EMPTY; + afc_unlock(client); return ret; -- cgit v1.1-32-gdbae