]> arthur.barton.de Git - netatalk.git/commitdiff
Fix a problem where overquota() will report false if the user has no
authorjmarcus <jmarcus>
Sun, 3 Feb 2002 05:01:09 +0000 (05:01 +0000)
committerjmarcus <jmarcus>
Sun, 3 Feb 2002 05:01:09 +0000 (05:01 +0000)
set time limit.

etc/afpd/quota.c

index 35d33e19543486b6dd10e9de315515342606e5ba..0596d7c74ca3fa48e83d993844609b654aebe93a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: quota.c,v 1.18 2002-01-19 17:27:20 jmarcus Exp $
+ * $Id: quota.c,v 1.19 2002-02-03 05:01:09 jmarcus Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -366,7 +366,7 @@ struct dqblk        *dqblk;
         LOG(log_error, logtype_default, "overquota: gettimeofday: %s", strerror(errno) );
         return( AFPERR_PARAM );
     }
-    if ( !dqblk->dqb_btimelimit || dqblk->dqb_btimelimit > tv.tv_sec ) {
+    if ( dqblk->dqb_btimelimit && dqblk->dqb_btimelimit > tv.tv_sec ) {
         return( 0 );
     }
 #endif /* ultrix */