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 (+4 lines)
Lines 27-32 Link Here
27
#include <config.h>
27
#include <config.h>
28
#endif
28
#endif
29
29
30
#ifndef ALLPERMS
31
#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
32
#endif
33
30
#include <sys/types.h>
34
#include <sys/types.h>
31
#include <sys/stat.h>
35
#include <sys/stat.h>
32
36
(-)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 (+4 lines)
Lines 68-73 Link Here
68
 * directory's mode bits are restored from this information.
68
 * directory's mode bits are restored from this information.
69
 */
69
 */
70
70
71
#ifndef ALLPERMS
72
#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
73
#endif
74
71
#include <sys/types.h>
75
#include <sys/types.h>
72
#include <sys/stat.h>
76
#include <sys/stat.h>
73
77
(-)a/support/junction/path.c (-2 / +7 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
#include <config.h>
27
28
#ifdef HAVE_LIMITS_H
29
#include <limits.h>
30
#endif
31
26
#include <sys/types.h>
32
#include <sys/types.h>
27
#include <sys/stat.h>
33
#include <sys/stat.h>
28
34
Lines 99-105 nsdb_alloc_zero_component_pathname(char ***path_array) Link Here
99
 * Remove multiple sequential slashes and any trailing slashes,
105
 * Remove multiple sequential slashes and any trailing slashes,
100
 * but leave "/" by itself alone.
106
 * but leave "/" by itself alone.
101
 */
107
 */
102
static __attribute_malloc__ char *
108
__attribute__((__malloc__)) char *
103
nsdb_normalize_path(const char *pathname)
109
nsdb_normalize_path(const char *pathname)
104
{
110
{
105
	size_t i, j, len;
111
	size_t i, j, len;
106
- 

Return to bug 830081