Date: Tue, 04 Dec 2001 14:51:47 +0000 From: Ceri <setantae@submonkey.net> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/32501: quot(8) is stupid regarding the filesystem option Message-ID: <E16BGvD-000AO2-00@rhadamanth.private.submonkey.net>
next in thread | raw e-mail | index | archive | help
>Number: 32501 >Category: bin >Synopsis: quot(8) is stupid regarding the filesystem option >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Dec 04 07:00:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Ceri >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD rhadamanth.private.submonkey.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Mon Nov 26 13:11:22 GMT 2001 setantae@rhadamanth.private.submonkey.net:/usr/obj/usr/src/sys/RHADAMANTH i386 >Description: quot(8) is used to provide details on a filesystem's usage by user. It takes as the filesystem option either a device or a mountpoint. It exits with uninformative errors though if the mountpoint contains a trailing slash, which it usually will do if you are using bash. The error gives no clue what you have done wrong. >How-To-Repeat: In the following : /data is a mountpoint for a FAT32 filesystem (this works ok) /tmp is a mountpoint for an MFS filesystem (gives daft error with slash) /usr is a mountpoint for a UFS filesystem (also gives daft error). rhadamanth# quot /data quot: /dev/ad6s5: not a BSD filesystem rhadamanth# quot /data/ quot: /data/: not a BSD filesystem rhadamanth# quot /tmp quot: /dev/ad4s2b: not a BSD filesystem rhadamanth# quot /tmp/ quot: /tmp/: Undefined error: 0 rhadamanth# quot /usr /dev/ad4s2g: 1244291 root 8629 setantae 1096 man 38 uucp 1 www rhadamanth# quot /usr/ quot: /usr/: Undefined error: 0 >Fix: One of the following suggestions : 1) Strip a trailing slash from the input. 2) Refuse to take anything other than a device. 3) Add this to the bugs section of the manpage. Ceri >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16BGvD-000AO2-00>