From ec25bd9b420ab62bcc3ec709f467eb43d434b66d Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Tue, 10 Jul 2007 22:38:22 -0700 Subject: Prepare for 1.95 release. --- libcap/cap_proc.c | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) (limited to 'libcap/cap_proc.c') 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 - * - * See end of file for Log. + * Copyright (c) 1997-8 Andrew G Morgan * * 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 - * - */ -- cgit v1.2.3