Subject: bin/2099: Cosmetic messaging in quotaon
To: None <gnats-bugs@NetBSD.ORG>
From: Joao Carlos Mendes Luis <jonny@gaia.coppe.ufrj.br>
List: netbsd-bugs
Date: 02/18/1996 18:41:48
>Number:         2099
>Category:       bin
>Synopsis:       Cosmetic messaging in quotaon
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 18 16:50:01 1996
>Last-Modified:
>Originator:     Joao Carlos Mendes Luis
>Organization:
COPPE/UFRJ
>Release:        1.0, 1.1, current
>Environment:
	
System: NetBSD gaia.coppe.ufrj.br 1.0 NetBSD 1.0 (GAIA) #3: Fri Feb 16 14:02:02 GMT-0300 1996 jonny@gaia.coppe.ufrj.br:/usr/src/sys/arch/i386/compile/GAIA i386


>Description:
	quotaoff does not specify type of quota beeing disabled, and quotaon
      error message is not clear.

>How-To-Repeat:

  Enable both user a group quotas in a filesystem.  quotaon reports
both beeing enable, but quotaoff report two times a no-type quota
being disabled.

>Fix:

*** nquotaon.c	Sun Feb 18 18:14:53 1996
--- quotaon.c	Sun Feb 18 16:11:22 1996
***************
*** 163,175 ****
  			return (1);
  		}
  		if (vflag)
! 			printf("%s: %s quotas turned off\n", 
! 			  qfextension[type], fs->fs_file);
  		return (0);
  	}
  	if (quotactl(fs->fs_file, QCMD(Q_QUOTAON, type), 0, qfpathname) < 0) {
! 		fprintf(stderr, "quotaon: %s quotas using %s",
! 		    qfextension[type], qfpathname);
  		perror(fs->fs_file);
  		return (1);
  	}
--- 163,173 ----
  			return (1);
  		}
  		if (vflag)
! 			printf("%s: quotas turned off\n", fs->fs_file);
  		return (0);
  	}
  	if (quotactl(fs->fs_file, QCMD(Q_QUOTAON, type), 0, qfpathname) < 0) {
! 		fprintf(stderr, "quotaon: using %s on", qfpathname);
  		perror(fs->fs_file);
  		return (1);
  	}
>Audit-Trail:
>Unformatted: