]> arthur.barton.de Git - netatalk.git/commitdiff
Trying to create an EA that already existed returned the wrong AFP error code
authorRalph Boehme <sloowfranklin@gmail.com>
Wed, 12 Dec 2012 10:11:37 +0000 (11:11 +0100)
committerRalph Boehme <sloowfranklin@gmail.com>
Wed, 12 Dec 2012 10:11:37 +0000 (11:11 +0100)
libatalk/vfs/sys_ea.c

index 3db20b239cc69f4b2a39695d85ced1653dbf6daf..6269f0a46d63145a972d0bfb29e0e576b83dd68a 100644 (file)
@@ -723,14 +723,7 @@ static int solaris_unlinkat(int attrdirfd, const char *name)
 
 static int solaris_attropen(const char *path, const char *attrpath, int oflag, mode_t mode)
 {
-       int filedes = attropen(path, attrpath, oflag, mode);
-       if (filedes == -1) {
-        if (errno != ENOENT)
-            LOG(log_error, logtype_default, "attropen(\"%s\", ea:'%s'): %s",
-                path, attrpath, strerror(errno));
-        errno = ENOATTR;
-       }
-       return filedes;
+       return attropen(path, attrpath, oflag, mode);
 }
 
 static int solaris_openat(int fildes, const char *path, int oflag, mode_t mode)