]> arthur.barton.de Git - netatalk.git/commitdiff
Fix some errno assignments (== vs. =).
authorsrittau <srittau>
Thu, 14 Nov 2002 17:11:54 +0000 (17:11 +0000)
committersrittau <srittau>
Thu, 14 Nov 2002 17:11:54 +0000 (17:11 +0000)
libatalk/adouble/ad_open.c

index 9be9af32a30b8b129785189852da32b20d902c95..f4b273ed4da8ba2f9173161f08c92dba3b6dacc5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ad_open.c,v 1.21 2002-10-11 14:18:37 didg Exp $
+ * $Id: ad_open.c,v 1.22 2002-11-14 17:11:54 srittau Exp $
  *
  * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
@@ -623,7 +623,7 @@ int ad_open( path, adflags, oflags, mode, ad )
             if ((oflags & ( O_RDWR | O_WRONLY)) &&             /* we want write access */
                !(ad->ad_df.adf_flags & ( O_RDWR | O_WRONLY))) /* and it was denied the first time */
             {
-                 errno == EACCES;
+                 errno = EACCES;
                  return -1;
             }
        }
@@ -640,7 +640,7 @@ int ad_open( path, adflags, oflags, mode, ad )
                 /* don't call with ADFLAGS_HF because we didn't open ressource fork */
                ad_close( ad, ADFLAGS_DF );
            }
-            errno == EACCES;
+            errno = EACCES;
            return -1;
        }
        ad_refresh(ad);