aboutsummaryrefslogtreecommitdiff
path: root/libcap/cap_proc.c
diff options
context:
space:
mode:
authorAndrew Morgan <morgan@kernel.org>2007-07-10 22:38:22 -0700
committerJorge Lucangeli Obes <jorgelo@google.com>2015-09-03 14:13:03 -0700
commitec25bd9b420ab62bcc3ec709f467eb43d434b66d (patch)
tree99f84e363efe6a246a9b1ab798c82e7d0cc383c5 /libcap/cap_proc.c
parentf9c44c45c23630bcf24135d7972a298aad5949ea (diff)
downloadlibcap-ec25bd9b420ab62bcc3ec709f467eb43d434b66d.tar.gz
Prepare for 1.95 release.
Diffstat (limited to 'libcap/cap_proc.c')
-rw-r--r--libcap/cap_proc.c35
1 files changed, 3 insertions, 32 deletions
diff --git a/libcap/cap_proc.c b/libcap/cap_proc.c
index a7a6b73..5c2ac48 100644
--- a/libcap/cap_proc.c
+++ b/libcap/cap_proc.c
@@ -1,9 +1,5 @@
/*
- * $Id: cap_proc.c,v 1.2 1999/04/18 20:50:01 morgan Exp $
- *
- * Copyright (c) 1997-8 Andrew G Morgan <morgan@linux.kernel.org>
- *
- * See end of file for Log.
+ * Copyright (c) 1997-8 Andrew G Morgan <morgan@kernel.org>
*
* This file deals with setting capabilities on processes.
*/
@@ -21,7 +17,8 @@ cap_t cap_get_proc(void)
/* fill the capability sets via a system call */
if (capget(&result->head, &result->set)) {
- cap_free(&result);
+ cap_free(result);
+ result = NULL;
}
}
@@ -87,29 +84,3 @@ int capsetp(pid_t pid, cap_t cap_d)
return error;
}
-/*
- * $Log: cap_proc.c,v $
- * Revision 1.2 1999/04/18 20:50:01 morgan
- * reliable behavior when trying to talk with a kernel that has a more
- * modern capability implementation than the one the library was compiled
- * with.
- *
- * Revision 1.1.1.1 1999/04/17 22:16:31 morgan
- * release 1.0 of libcap
- *
- * Revision 1.5 1998/05/24 22:54:09 morgan
- * updated for 2.1.104
- *
- * Revision 1.4 1997/05/14 05:17:13 morgan
- * bug-fix from zefram (errno no set on success)
- *
- * Revision 1.3 1997/05/04 05:35:46 morgan
- * fixed errno setting. syscalls do this part
- *
- * Revision 1.2 1997/04/28 00:57:11 morgan
- * fixes and zefram's patches
- *
- * Revision 1.1 1997/04/21 04:32:52 morgan
- * Initial revision
- *
- */