File autofs-5.0.8-eaccess.patch of Package autofs.openSUSE_13.1_Update
Index: daemon/automount.c
===================================================================
--- daemon/automount.c.orig
+++ daemon/automount.c
@@ -107,9 +107,9 @@ static int do_mkdir(const char *parent,
/* If path exists we're done */
status = stat(path, &st);
if (status == 0) {
+ errno = EEXIST;
if (!S_ISDIR(st.st_mode))
errno = ENOTDIR;
- errno = EEXIST;
return 0;
}