summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorGrigoriy Orlov <gluk@cvs.openbsd.org>2002-08-04 14:11:42 +0000
committerGrigoriy Orlov <gluk@cvs.openbsd.org>2002-08-04 14:11:42 +0000
commitbed099a91a8e360fd84b6e8f3edf8185867e8b15 (patch)
tree125ad10edb4804c74fa490a3ab74056fac70936c /sbin
parente244bc1033249d7e54f3fbcbe8dfbfef0098f08e (diff)
- grammar cleanup.
- check for the failure of strdup(). from tedu <grendel@zeitbombe.org>
Diffstat (limited to 'sbin')
-rw-r--r--sbin/atactl/atactl.817
-rw-r--r--sbin/atactl/atactl.c6
2 files changed, 13 insertions, 10 deletions
diff --git a/sbin/atactl/atactl.8 b/sbin/atactl/atactl.8
index 113715679c7..f9bcec8af9b 100644
--- a/sbin/atactl/atactl.8
+++ b/sbin/atactl/atactl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: atactl.8,v 1.16 2002/07/06 14:46:57 gluk Exp $
+.\" $OpenBSD: atactl.8,v 1.17 2002/08/04 14:11:41 gluk Exp $
.\" $NetBSD: atactl.8,v 1.5 1999/02/24 18:49:14 jwise Exp $
.\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -257,7 +257,7 @@ The purpose of the master password is to allow an administrator to establish
a password that is kept secret from the user, and which may be used to unlock
the device if the user password is lost.
Setting the master password does not enable security system.
-Each master password change causes decrement of the master password revision
+Each master password change decrements the master password revision
code value which is displayed in the
.Cm identify
command output if supported.
@@ -278,7 +278,7 @@ command erases all user data on the device.
.Ar user | master
.Pp
Unlocks the specified device with user or master password.
-The device will always unlock if valid user password is received.
+The device will always unlock if a valid user password is received.
If the security level was set to high during the last
.Cm secsetpass
command, the device will unlock if the master password is received.
@@ -291,10 +291,10 @@ command, the device won't unlock if the master password is received.
.Op Ar enhanced
.Pp
Erases all user data and unlocks the specified device.
-Execution of this command with master password is the only way to unlock the
-device being locked at maximum security level with
+Execution of this command with master password is the only way to unlock a
+device locked at maximum security level with
.Cm secsetpass
-command if user password lost or unknown.
+command if user password is lost or unknown.
There are two erase modes: normal and enhanced.
Default erase mode is normal.
In the normal erase mode this command will write binary zeroes to
@@ -331,8 +331,9 @@ command.
.Pp
.Em WARNING
.br
-Be very carefull while playing with theese commands.
-If you lose user and master passwords the device will be inaccessible at all.
+Be very careful while playing with these commands.
+If you lose the user and master passwords the device will not be accessible
+at all.
Don't use it unless the implications are completely understood.
.Pp
.Cm smartenable
diff --git a/sbin/atactl/atactl.c b/sbin/atactl/atactl.c
index e87027aa68e..afbd7c15d06 100644
--- a/sbin/atactl/atactl.c
+++ b/sbin/atactl/atactl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atactl.c,v 1.19 2002/07/06 14:46:57 gluk Exp $ */
+/* $OpenBSD: atactl.c,v 1.20 2002/08/04 14:11:41 gluk Exp $ */
/* $NetBSD: atactl.c,v 1.4 1999/02/24 18:49:14 jwise Exp $ */
/*-
@@ -673,7 +673,7 @@ device_sec_setpass(int argc, char *argv[])
* Issue IDENTIFY command to obtain master password
* revision code and decrement its value.
* The valid revision codes are 0x0001 through 0xfffe.
- * If device returnes 0x0000 or 0xffff as a revision
+ * If the device returns 0x0000 or 0xffff as a revision
* code then the master password revision code is not
* supported so don't touch it.
*/
@@ -886,6 +886,8 @@ sec_getpass(int ident, int confirm)
char *pass2;
pass2 = strdup(pass);
+ if (pass2 == NULL)
+ err(1, "strdup()");
if ((pass = getpass(ident ? "Retype master password:" :
"Retype user password:")) == NULL)
err(1, "getpass()");