]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commitdiff
Fix a few typos
authorEric Biggers <ebiggers@google.com>
Wed, 22 Dec 2021 04:59:58 +0000 (22:59 -0600)
committerEric Biggers <ebiggers@google.com>
Wed, 22 Dec 2021 05:02:55 +0000 (23:02 -0600)
README.md
pam/pam.go

index 2ca3942fa8287702fdf23f22c7b1722a9a241dfc..75b3d621827aa2d730755743bdd2be5bad14ee4c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -160,7 +160,7 @@ It's worth emphasizing that none of these encryption solutions protect unlocked
 encrypted files from other users on the same system (that's the job of OS-level
 access control, such as UNIX file permissions), or from the cloud provider you
 may be running a virtual machine on.  By themselves, they also do not protect
-from "evil maid" attacks, i.e. non-permanant offline compromises of the disk.
+from "evil maid" attacks, i.e. non-permanent offline compromises of the disk.
 
 ## Features
 
index f79e2d418a262b4b6aa61a000c90b74cbffac246..dab4a551e738f7a72a7cee6d1c2301fec6013d2d 100644 (file)
@@ -79,7 +79,7 @@ func (h *Handle) getData(name string) (unsafe.Pointer, error) {
        return data, h.err()
 }
 
-// ClearData remotes the PAM data with the specified name.
+// ClearData removes the PAM data with the specified name.
 func (h *Handle) ClearData(name string) error {
        return h.setData(name, unsafe.Pointer(C.CString("")), C.CleanupFunc(C.freeData))
 }
@@ -92,8 +92,8 @@ func (h *Handle) SetSecret(name string, secret unsafe.Pointer) error {
 }
 
 // GetSecret returns a pointer to the C string PAM data with the specified name.
-// This a pointer directory to the data, so it shouldn't be modified. It should
-// have been previously set with SetSecret().
+// This is a pointer directly to the data, so it shouldn't be modified. It
+// should have been previously set with SetSecret().
 func (h *Handle) GetSecret(name string) (unsafe.Pointer, error) {
        return h.getData(name)
 }
@@ -174,7 +174,7 @@ func (h *Handle) InfoMessage(message string) {
 }
 
 // Transaction represents a wrapped pam_handle_t type created with pam_start
-// form an application.
+// from an application.
 type Transaction Handle
 
 // Start initializes a pam Transaction. End() should be called after the