]> arthur.barton.de Git - netatalk.git/commitdiff
check against the right value in FPSetVolParms.
authordidg <didg>
Tue, 22 Apr 2003 04:19:55 +0000 (04:19 +0000)
committerdidg <didg>
Tue, 22 Apr 2003 04:19:55 +0000 (04:19 +0000)
etc/afpd/volume.c

index c770b574cc11b16cb70e5d5fab17394300a828c9..340c4ff74663f2a5f7d372dd525be48390fca850 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: volume.c,v 1.50 2003-03-19 00:13:23 didg Exp $
+ * $Id: volume.c,v 1.51 2003-04-22 04:19:55 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -1559,7 +1559,7 @@ int               ibuflen, *rbuflen;
         return AFPERR_VLOCK;
 
     /* we can only set the backup date. */
-    if (bitmap != VOLPBIT_BDATE)
+    if (bitmap != (1 << VOLPBIT_BDATE))
         return AFPERR_BITMAP;
 
     memset(&ad, 0, sizeof(ad));