Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
c78cb8f3
Commit
c78cb8f3
authored
Dec 30, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made some user-/group-name pointers "const".
parent
7210dbfd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
acls.c
acls.c
+1
-1
flist.c
flist.c
+1
-1
uidlist.c
uidlist.c
+6
-6
No files found.
acls.c
View file @
c78cb8f3
...
...
@@ -556,7 +556,7 @@ static void send_ida_entries(const ida_entries *idal, int f)
for
(
ida
=
idal
->
idas
;
count
--
;
ida
++
)
{
uint32
xbits
=
ida
->
access
<<
2
;
char
*
name
;
c
onst
c
har
*
name
;
if
(
ida
->
access
&
NAME_IS_USER
)
{
xbits
|=
XFLAG_NAME_IS_USER
;
name
=
add_uid
(
ida
->
id
);
...
...
flist.c
View file @
c78cb8f3
...
...
@@ -351,7 +351,7 @@ static void send_file_entry(int f, struct file_struct *file, int ndx, int first_
static
uint32
rdev_major
;
static
uid_t
uid
;
static
gid_t
gid
;
static
char
*
user_name
,
*
group_name
;
static
c
onst
c
har
*
user_name
,
*
group_name
;
static
char
lastname
[
MAXPATHLEN
];
char
fname
[
MAXPATHLEN
];
int
first_hlink_ndx
=
-
1
;
...
...
uidlist.c
View file @
c78cb8f3
...
...
@@ -43,7 +43,7 @@ extern int numeric_ids;
struct
idlist
{
struct
idlist
*
next
;
char
*
name
;
c
onst
c
har
*
name
;
id_t
id
,
id2
;
uint16
flags
;
};
...
...
@@ -51,7 +51,7 @@ struct idlist {
static
struct
idlist
*
uidlist
;
static
struct
idlist
*
gidlist
;
static
struct
idlist
*
add_to_list
(
struct
idlist
**
root
,
id_t
id
,
char
*
name
,
static
struct
idlist
*
add_to_list
(
struct
idlist
**
root
,
id_t
id
,
c
onst
c
har
*
name
,
id_t
id2
,
uint16
flags
)
{
struct
idlist
*
node
=
new
(
struct
idlist
);
...
...
@@ -67,7 +67,7 @@ static struct idlist *add_to_list(struct idlist **root, id_t id, char *name,
}
/* turn a uid into a user name */
static
char
*
uid_to_name
(
uid_t
uid
)
static
c
onst
c
har
*
uid_to_name
(
uid_t
uid
)
{
struct
passwd
*
pass
=
getpwuid
(
uid
);
if
(
pass
)
...
...
@@ -76,7 +76,7 @@ static char *uid_to_name(uid_t uid)
}
/* turn a gid into a group name */
static
char
*
gid_to_name
(
gid_t
gid
)
static
c
onst
c
har
*
gid_to_name
(
gid_t
gid
)
{
struct
group
*
grp
=
getgrgid
(
gid
);
if
(
grp
)
...
...
@@ -237,7 +237,7 @@ gid_t match_gid(gid_t gid, uint16 *flags_ptr)
}
/* Add a uid to the list of uids. Only called on sending side. */
char
*
add_uid
(
uid_t
uid
)
c
onst
c
har
*
add_uid
(
uid_t
uid
)
{
struct
idlist
*
list
;
struct
idlist
*
node
;
...
...
@@ -255,7 +255,7 @@ char *add_uid(uid_t uid)
}
/* Add a gid to the list of gids. Only called on sending side. */
char
*
add_gid
(
gid_t
gid
)
c
onst
c
har
*
add_gid
(
gid_t
gid
)
{
struct
idlist
*
list
;
struct
idlist
*
node
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment