diff options
author | Andrew Morgan <morgan@kernel.org> | 2007-07-10 20:58:05 -0700 |
---|---|---|
committer | Andrew Morgan <morgan@kernel.org> | 2007-07-10 20:58:05 -0700 |
commit | f2e0a44e65728acc17d6d11d8988be8fdc36574b (patch) | |
tree | 7d7b9acdc1a22b387897d8440eba0c5d0c20ceeb /libcap/cap_text.c | |
parent | a65a7364c9a3b0ef862cb46aad3855d826247ecd (diff) | |
download | libcap-f2e0a44e65728acc17d6d11d8988be8fdc36574b.tar.gz |
This is libcap-1.10
http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2/libcap-1.10.tar.gz
Diffstat (limited to 'libcap/cap_text.c')
-rw-r--r-- | libcap/cap_text.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libcap/cap_text.c b/libcap/cap_text.c index c17f89f..c69e89b 100644 --- a/libcap/cap_text.c +++ b/libcap/cap_text.c @@ -1,5 +1,5 @@ /* - * $Id: cap_text.c,v 1.2 1999/04/17 23:25:09 morgan Exp $ + * $Id: cap_text.c,v 1.3 1999/11/18 06:03:26 morgan Exp $ * * Copyright (c) 1997-8 Andrew G Morgan <morgan@linux.kernel.org> * Copyright (c) 1997 Andrew Main <zefram@dcs.warwick.ac.uk> @@ -16,8 +16,6 @@ #include <ctype.h> #include <stdio.h> -char *strdup(const char *s); - /* Maximum output text length (16 per cap) */ #define CAP_TEXT_SIZE (16*__CAP_BITS) @@ -306,11 +304,14 @@ char *cap_to_text(cap_t caps, ssize_t *length_p) *length_p = p - buf; } - return (strdup(buf)); + return (_libcap_strdup(buf)); } /* * $Log: cap_text.c,v $ + * Revision 1.3 1999/11/18 06:03:26 morgan + * fixed cap_free to work as indicated in manuals + * * Revision 1.2 1999/04/17 23:25:09 morgan * fixes from peeterj * |