]> arthur.barton.de Git - netatalk.git/commitdiff
have_eafd fixes
authorFrank Lahm <franklahm@googlemail.com>
Fri, 27 Jan 2012 21:39:05 +0000 (22:39 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Fri, 27 Jan 2012 21:39:05 +0000 (22:39 +0100)
libatalk/vfs/extattr.c

index 9883563b05df0e709c58eca19a3b3031ef18ab35..a4d7089e2c5f2947dcec5a54fcd3672fd7804d47 100644 (file)
@@ -95,13 +95,13 @@ int sys_getxattrfd(const char *path, const char *uname, int oflag, ...)
     va_list args;
     mode_t mode;
 
-    if (oflags & O_CREAT) {
+    if (oflag & O_CREAT) {
         va_start(args, oflag);
         mode = va_arg(args, mode_t);
         va_end(args);
     }
 
-    if (oflags & O_CREAT)
+    if (oflag & O_CREAT)
         eafd = attropen(path, uname, oflag, mode);
     else
         eafd = attropen(path, uname, oflag);