diff options
author | Colin Walters <walters@verbum.org> | 2013-09-10 18:07:17 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-09-10 18:07:17 -0400 |
commit | c72d84a0a9edcccb366ba41b74e7a41a6d625ab1 (patch) | |
tree | b87afa369bfb98d8b28a8e984f78d01984c7de78 | |
parent | 7b9901e3fc8aa58cf9c0579c29340506269ebfbd (diff) | |
download | libgsystem-c72d84a0a9edcccb366ba41b74e7a41a6d625ab1.tar.gz |
shutil: Treat ELOOP like ENOTDIR
We can apparently get this if we try to open with O_NOFOLLOW a chain
of symlinks. Just treat it like it's not a directory so we unlink.
-rw-r--r-- | gsystem-shutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gsystem-shutil.c b/gsystem-shutil.c index 4ea3ca9..a8dbc18 100644 --- a/gsystem-shutil.c +++ b/gsystem-shutil.c @@ -362,7 +362,7 @@ gs_shutil_rm_rf (GFile *path, { ; } - else if (errsv == ENOTDIR) + else if (errsv == ENOTDIR || errsv == ELOOP) { if (!gs_file_unlink (path, cancellable, error)) goto out; |