summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2021-03-06 21:24:28 -0800
committerAndrew G. Morgan <morgan@kernel.org>2021-03-06 21:49:38 -0800
commitb381e6e2ef83fce7c5476b428c27ab3e94acf1f8 (patch)
tree630135d92912328762db405539ad4ec31e46a032
parent6bcf0e24a74333508baad2b7dc6185196921b1c2 (diff)
downloadlibcap2-b381e6e2ef83fce7c5476b428c27ab3e94acf1f8.tar.gz
Fix the README reference to the License file.
Also a minor change to the cap examples in the package overview doc. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r--cap/README2
-rw-r--r--cap/cap.go2
-rw-r--r--psx/README2
3 files changed, 3 insertions, 3 deletions
diff --git a/cap/README b/cap/README
index 3ac8433..f257d44 100644
--- a/cap/README
+++ b/cap/README
@@ -4,7 +4,7 @@ Go. The official release announcement site for libcap is:
https://sites.google.com/site/fullycapable/
Like libcap, the cap package is distributed with a "you choose"
-License. Specifically: BSD three clause, or GPL2. See the LICENSE
+License. Specifically: BSD three clause, or GPL2. See the License
file.
Andrew G. Morgan <morgan@kernel.org>
diff --git a/cap/cap.go b/cap/cap.go
index ae40c00..5263c34 100644
--- a/cap/cap.go
+++ b/cap/cap.go
@@ -28,7 +28,7 @@
// log.Fatalf("failed to drop privilege: %q -> %q: %v", old, empty, err)
// }
// now := cap.GetProc()
-// if cap.Differs(now.Compare(empty)) {
+// if cf, _ := now.Compare(empty); cf != 0 {
// log.Fatalf("failed to fully drop privilege: have=%q, wanted=%q", now, empty)
// }
//
diff --git a/psx/README b/psx/README
index cd9c651..e4f9001 100644
--- a/psx/README
+++ b/psx/README
@@ -23,6 +23,6 @@ The official release announcement site for libcap and libpsx is:
Like libcap/libpsx itself, the "psx" package is distributed with a
"you choose" License. Specifically: BSD three clause, or GPL2. See the
-LICENSE file.
+License file.
Andrew G. Morgan <morgan@kernel.org>