summaryrefslogtreecommitdiffstats
path: root/usr.sbin/quotaon
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-06-22 06:09:02 +0000
committerderaadt <deraadt@openbsd.org>1997-06-22 06:09:02 +0000
commit2908d6107920fb48e0c75045d38d2e5f314768ff (patch)
tree7c0881ce2f00347013ece4340098af787b690849 /usr.sbin/quotaon
parentnow where did that patch go? (diff)
downloadwireguard-openbsd-2908d6107920fb48e0c75045d38d2e5f314768ff.tar.xz
wireguard-openbsd-2908d6107920fb48e0c75045d38d2e5f314768ff.zip
fix messages; like from jonny@gaia.coppe.ufrj.br
Diffstat (limited to 'usr.sbin/quotaon')
-rw-r--r--usr.sbin/quotaon/quotaon.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c
index 4579d6f5ec8..8e77faefeb6 100644
--- a/usr.sbin/quotaon/quotaon.c
+++ b/usr.sbin/quotaon/quotaon.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)quotaon.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: quotaon.c,v 1.9 1997/06/04 04:18:37 dm Exp $";
+static char *rcsid = "$Id: quotaon.c,v 1.10 1997/06/22 06:09:02 deraadt Exp $";
#endif /* not lint */
/*
@@ -171,12 +171,13 @@ quotaonoff(fs, offmode, type, qfpathname)
return (1);
}
if (vflag)
- printf("%s: quotas turned off\n", fs->fs_file);
+ printf("%s: %s quotas turned off\n", fs->fs_file,
+ qfextension[type]);
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);
+ warn("%s: %s quotas using %s", fs->fs_file,
+ qfextension[type], qfpathname);
return (1);
}
if (vflag)