Module Name: src
Committed By: wiz
Date: Mon Sep 6 13:15:29 UTC 2010
Modified Files:
src/usr.sbin/perfused: perfused.c
Log Message:
Fix some typos in messages. Make usage match manpage.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/perfused/perfused.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/perfused/perfused.c
diff -u src/usr.sbin/perfused/perfused.c:1.5 src/usr.sbin/perfused/perfused.c:1.6
--- src/usr.sbin/perfused/perfused.c:1.5 Mon Sep 6 01:40:24 2010
+++ src/usr.sbin/perfused/perfused.c Mon Sep 6 13:15:29 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: perfused.c,v 1.5 2010/09/06 01:40:24 manu Exp $ */
+/* $NetBSD: perfused.c,v 1.6 2010/09/06 13:15:29 wiz Exp $ */
/*-
* Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved.
@@ -205,14 +205,14 @@
* Get peer identity
*/
if (getpeerid(fd, NULL, &pmi.pmi_uid, NULL) != 0)
- DWARNX("Unable to retreive peer identity");
+ DWARNX("Unable to retrieve peer identity");
/*
* Check that peer owns mountpoint and read (and write) on it?
*/
ro_flag = pmi.pmi_mountflags & MNT_RDONLY;
if (access_mount(pmi.pmi_target, pmi.pmi_uid, ro_flag) != 0)
- DERRX(EX_NOPERM, "insuficient privvileges to mount %s",
+ DERRX(EX_NOPERM, "insufficient privileges to mount %s",
pmi.pmi_target);
@@ -343,7 +343,7 @@
foreground = 1;
break;
default:
- DERR(EX_USAGE, "%s [-d level] [-s] [-f] [-i fd]", argv[0]);
+ DERR(EX_USAGE, "%s [-fs] [-d level] [-i fd]", argv[0]);
break;
}
}