Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
clsync
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
redmine
2015-04-03 14:11:25 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
09df3c7c4609ebf60e825cdb0e45c4bcf33308b1
09df3c7c
1 parent
def43886
Replaced one more error() by warning() + polishing
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
rules.c
rules.c
View file @
09df3c7
...
...
@@ -149,7 +149,7 @@ int parse_rules_fromfile(ctx_t *ctx_p) {
rule
->
objtype
=
S_IFDIR
;
break
;
case
'w'
:
// accept or reject walking to directory
if
(
if
(
(
ctx_p
->
flags
[
MODE
]
==
MODE_RSYNCDIRECT
)
||
(
ctx_p
->
flags
[
MODE
]
==
MODE_RSYNCSHELL
)
||
(
ctx_p
->
flags
[
MODE
]
==
MODE_RSYNCSO
)
...
...
@@ -161,7 +161,7 @@ int parse_rules_fromfile(ctx_t *ctx_p) {
rule
->
mask
=
RA_WALK
;
break
;
default:
error
(
"Warning:
Cannot parse the rule <%s>"
,
&
line
[
-
1
]);
warning
(
"
Cannot parse the rule <%s>"
,
&
line
[
-
1
]);
i
--
;
// Canceling new rule
continue
;
}
...
...
@@ -250,7 +250,7 @@ int parse_rules_fromfile(ctx_t *ctx_p) {
g_hash_table_insert
(
autowrules_ht
,
strdup
(
expr
),
GINT_TO_POINTER
(
1
));
}
}
while
(
end
!=
NULL
);
}
while
(
end
!=
NULL
);
}
}
}
...
...
@@ -258,7 +258,7 @@ int parse_rules_fromfile(ctx_t *ctx_p) {
}
l_parse_rules_fromfile_end:
if
(
size
)
if
(
size
)
free
(
line_buf
);
fclose
(
f
);
...
...
Please
register
or
login
to post a comment