summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-22 06:09:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-22 06:09:03 +0000
commit796b0258c761ba2015cbcc117ae6961cae2a6221 (patch)
tree18f8e6ba46b0fd0689d414ff0ffc80e63cd1ec18
parent5717cfbe77f39162809aea43c7fb214d7a229f3b (diff)
fix messages; like from jonny@gaia.coppe.ufrj.br
-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)