Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 830081 | Differences between
and this patch

Collapse All | Expand All

(-)a/support/include/junction.h (-1 / +1 lines)
Lines 125-131 void nfs_free_location(struct nfs_fsloc *location); Link Here
125
void		  nfs_free_locations(struct nfs_fsloc *locations);
125
void		  nfs_free_locations(struct nfs_fsloc *locations);
126
struct nfs_fsloc *nfs_new_location(void);
126
struct nfs_fsloc *nfs_new_location(void);
127
127
128
__attribute_malloc__
128
__attribute__((__malloc__))
129
char		**nfs_dup_string_array(char **array);
129
char		**nfs_dup_string_array(char **array);
130
void		  nfs_free_string_array(char **array);
130
void		  nfs_free_string_array(char **array);
131
131
(-)a/support/junction/junction.c (+3 lines)
Lines 29-34 Link Here
29
29
30
#include <sys/types.h>
30
#include <sys/types.h>
31
#include <sys/stat.h>
31
#include <sys/stat.h>
32
#ifndef ALLPERMS
33
#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
34
#endif
32
35
33
#include <stdbool.h>
36
#include <stdbool.h>
34
#include <stdio.h>
37
#include <stdio.h>
(-)a/support/junction/locations.c (-1 / +1 lines)
Lines 63-69 nfs_free_string_array(char **array) Link Here
63
 *
63
 *
64
 * Caller must free the returned array with nfs_free_string_array()
64
 * Caller must free the returned array with nfs_free_string_array()
65
 */
65
 */
66
__attribute_malloc__ char **
66
__attribute__((__malloc__)) char **
67
nfs_dup_string_array(char **array)
67
nfs_dup_string_array(char **array)
68
{
68
{
69
	unsigned int size, i;
69
	unsigned int size, i;
(-)a/support/junction/nfs.c (+3 lines)
Lines 70-75 Link Here
70
70
71
#include <sys/types.h>
71
#include <sys/types.h>
72
#include <sys/stat.h>
72
#include <sys/stat.h>
73
#ifndef ALLPERMS
74
#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
75
#endif
73
76
74
#include <stdbool.h>
77
#include <stdbool.h>
75
#include <stdio.h>
78
#include <stdio.h>
(-)a/support/junction/path.c (-2 / +9 lines)
Lines 23-28 Link Here
23
 *	http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
23
 *	http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
24
 */
24
 */
25
25
26
#ifdef HAVE_CONFIG_H
27
#include <config.h>
28
#endif
29
30
#ifdef HAVE_LIMITS_H
31
#include <limits.h>
32
#endif
33
26
#include <sys/types.h>
34
#include <sys/types.h>
27
#include <sys/stat.h>
35
#include <sys/stat.h>
28
36
Lines 99-105 nsdb_alloc_zero_component_pathname(char ***path_array) Link Here
99
 * Remove multiple sequential slashes and any trailing slashes,
107
 * Remove multiple sequential slashes and any trailing slashes,
100
 * but leave "/" by itself alone.
108
 * but leave "/" by itself alone.
101
 */
109
 */
102
static __attribute_malloc__ char *
110
static __attribute__((__malloc__)) char *
103
nsdb_normalize_path(const char *pathname)
111
nsdb_normalize_path(const char *pathname)
104
{
112
{
105
	size_t i, j, len;
113
	size_t i, j, len;
106
- 

Return to bug 830081