Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Pkg Iptables
Commits
eb1d7c5f
Commit
eb1d7c5f
authored
Jun 04, 2020
by
Arturo Borrero Gonzalez
Browse files
New upstream version 1.8.5
parent
290749d4
Changes
125
Show whitespace changes
Inline
Side-by-side
libxtables/Makefile.in
View file @
eb1d7c5f
# Makefile.in generated by automake 1.1
5
from Makefile.am.
# Makefile.in generated by automake 1.1
6.1
from Makefile.am.
# @configure_input@
# Copyright (C) 1994-201
4
Free Software Foundation, Inc.
# Copyright (C) 1994-201
8
Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
...
...
@@ -163,7 +163,10 @@ am__v_at_0 = @
am__v_at_1
=
DEFAULT_INCLUDES
=
-I
.@am__isrc@
-I
$(top_builddir)
depcomp
=
$(SHELL)
$(top_srcdir)
/build-aux/depcomp
am__depfiles_maybe
=
depfiles
am__maybe_remake_depfiles
=
depfiles
am__depfiles_remade
=
./
$(DEPDIR)
/libxtables_la-getethertype.Plo
\
./
$(DEPDIR)
/libxtables_la-xtables.Plo
\
./
$(DEPDIR)
/libxtables_la-xtoptions.Plo
am__mv
=
mv
-f
COMPILE
=
$(CC)
$(DEFS)
$(DEFAULT_INCLUDES)
$(INCLUDES)
$(AM_CPPFLAGS)
\
$(CPPFLAGS)
$(AM_CFLAGS)
$(CFLAGS)
...
...
@@ -386,8 +389,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
*
config.status
*
)
\
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
;;
\
*
)
\
echo
' cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/$@
$(am__depfiles
_maybe
)
'
;
\
cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/
$@
$(am__depfiles
_maybe
)
;;
\
echo
' cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/$@
$(am__
maybe_remake_
depfiles)
'
;
\
cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/
$@
$(am__
maybe_remake_
depfiles)
;;
\
esac
;
$(top_builddir)/config.status
:
$(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
...
...
@@ -443,9 +446,15 @@ mostlyclean-compile:
distclean-compile
:
-
rm
-f
*
.tab.c
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/libxtables_la-getethertype.Plo@am__quote@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/libxtables_la-xtables.Plo@am__quote@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/libxtables_la-xtoptions.Plo@am__quote@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/libxtables_la-getethertype.Plo@am__quote@
# am--include-marker
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/libxtables_la-xtables.Plo@am__quote@
# am--include-marker
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/libxtables_la-xtoptions.Plo@am__quote@
# am--include-marker
$(am__depfiles_remade)
:
@
$(MKDIR_P)
$
(
@D
)
@
echo
'# dummy'
>
$@
-t
&&
$(am__mv)
$@
-t
$@
am--depfiles
:
$(am__depfiles_remade)
.c.o
:
@am__fastdepCC_TRUE@
$(AM_V_CC)$(COMPILE)
-MT
$@
-MD
-MP
-MF
$(DEPDIR)/$*.Tpo
-c
-o
$@
$<
...
...
@@ -547,7 +556,10 @@ cscopelist-am: $(am__tagged_files)
distclean-tags
:
-
rm
-f
TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir
:
$(DISTFILES)
distdir
:
$(BUILT_SOURCES)
$(MAKE)
$(AM_MAKEFLAGS)
distdir-am
distdir-am
:
$(DISTFILES)
@
srcdirstrip
=
`
echo
"
$(srcdir)
"
|
sed
's/[].[^$$\\*]/\\\\&/g'
`
;
\
topsrcdirstrip
=
`
echo
"
$(top_srcdir)
"
|
sed
's/[].[^$$\\*]/\\\\&/g'
`
;
\
list
=
'
$(DISTFILES)
'
;
\
...
...
@@ -620,7 +632,9 @@ clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
mostlyclean-am
distclean
:
distclean-am
-
rm
-rf
./
$(DEPDIR)
-
rm
-f
./
$(DEPDIR)
/libxtables_la-getethertype.Plo
-
rm
-f
./
$(DEPDIR)
/libxtables_la-xtables.Plo
-
rm
-f
./
$(DEPDIR)
/libxtables_la-xtoptions.Plo
-
rm
-f
Makefile
distclean-am
:
clean-am distclean-compile distclean-generic
\
distclean-tags
...
...
@@ -666,7 +680,9 @@ install-ps-am:
installcheck-am
:
maintainer-clean
:
maintainer-clean-am
-
rm
-rf
./
$(DEPDIR)
-
rm
-f
./
$(DEPDIR)
/libxtables_la-getethertype.Plo
-
rm
-f
./
$(DEPDIR)
/libxtables_la-xtables.Plo
-
rm
-f
./
$(DEPDIR)
/libxtables_la-xtoptions.Plo
-
rm
-f
Makefile
maintainer-clean-am
:
distclean-am maintainer-clean-generic
...
...
@@ -687,9 +703,9 @@ uninstall-am: uninstall-libLTLIBRARIES
.MAKE
:
install-am install-strip
.PHONY
:
CTAGS GTAGS TAGS all all-am check check-am clean
clean-generic
\
clean-libLTLIBRARIES clean-libtool cscopelist-am
ctags
\
ctags-am distclean distclean-compile distclean-generic
\
.PHONY
:
CTAGS GTAGS TAGS all all-am
am--depfiles
check check-am clean
\
clean-generic
clean-libLTLIBRARIES clean-libtool cscopelist-am
\
ctags
ctags-am distclean distclean-compile distclean-generic
\
distclean-libtool distclean-tags distdir dvi dvi-am html
\
html-am info info-am install install-am install-data
\
install-data-am install-dvi install-dvi-am install-exec
\
...
...
libxtables/xtables.c
View file @
eb1d7c5f
...
...
@@ -206,6 +206,38 @@ struct xtables_target *xtables_targets;
static
bool
xtables_fully_register_pending_match
(
struct
xtables_match
*
me
);
static
bool
xtables_fully_register_pending_target
(
struct
xtables_target
*
me
);
/* registry for loaded shared objects to close later */
struct
dlreg
{
struct
dlreg
*
next
;
void
*
handle
;
};
static
struct
dlreg
*
dlreg
=
NULL
;
static
int
dlreg_add
(
void
*
handle
)
{
struct
dlreg
*
new
=
malloc
(
sizeof
(
*
new
));
if
(
!
new
)
return
-
1
;
new
->
handle
=
handle
;
new
->
next
=
dlreg
;
dlreg
=
new
;
return
0
;
}
static
void
dlreg_free
(
void
)
{
struct
dlreg
*
next
;
while
(
dlreg
)
{
next
=
dlreg
->
next
;
dlclose
(
dlreg
->
handle
);
free
(
dlreg
);
dlreg
=
next
;
}
}
void
xtables_init
(
void
)
{
xtables_libdir
=
getenv
(
"XTABLES_LIBDIR"
);
...
...
@@ -233,6 +265,11 @@ void xtables_init(void)
xtables_libdir
=
XTABLES_LIBDIR
;
}
void
xtables_fini
(
void
)
{
dlreg_free
();
}
void
xtables_set_nfproto
(
uint8_t
nfproto
)
{
switch
(
nfproto
)
{
...
...
@@ -567,6 +604,8 @@ static void *load_extension(const char *search_path, const char *af_prefix,
next
=
dir
+
strlen
(
dir
);
for
(
prefix
=
all_prefixes
;
*
prefix
!=
NULL
;
++
prefix
)
{
void
*
handle
;
snprintf
(
path
,
sizeof
(
path
),
"%.*s/%s%s.so"
,
(
unsigned
int
)(
next
-
dir
),
dir
,
*
prefix
,
name
);
...
...
@@ -578,11 +617,14 @@ static void *load_extension(const char *search_path, const char *af_prefix,
strerror
(
errno
));
return
NULL
;
}
if
(
dlopen
(
path
,
RTLD_NOW
)
==
NULL
)
{
handle
=
dlopen
(
path
,
RTLD_NOW
);
if
(
handle
==
NULL
)
{
fprintf
(
stderr
,
"%s: %s
\n
"
,
path
,
dlerror
());
break
;
}
dlreg_add
(
handle
);
if
(
is_target
)
ptr
=
xtables_find_target
(
name
,
XTF_DONT_LOAD
);
else
...
...
@@ -856,7 +898,8 @@ int xtables_compatible_revision(const char *name, uint8_t revision, int opt)
xtables_load_ko
(
xtables_modprobe_program
,
true
);
strcpy
(
rev
.
name
,
name
);
strncpy
(
rev
.
name
,
name
,
XT_EXTENSION_MAXNAMELEN
-
1
);
rev
.
name
[
XT_EXTENSION_MAXNAMELEN
-
1
]
=
'\0'
;
rev
.
revision
=
revision
;
max_rev
=
getsockopt
(
sockfd
,
afinfo
->
ipproto
,
opt
,
&
rev
,
&
s
);
...
...
m4/libtool.m4
View file @
eb1d7c5f
...
...
@@ -4063,7 +4063,8 @@ _LT_EOF
if
AC_TRY_EVAL
(
ac_compile
);
then
#
Now
try
to
grab
the
symbols
.
nlist
=
conftest
.
nm
if
AC_TRY_EVAL
(
NM
conftest
.$
ac_objext
\|
"$lt_cv_sys_global_symbol_pipe"
\>
$
nlist
)
&&
test
-
s
"$nlist"
;
then
$
ECHO
"$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist"
>&
AS_MESSAGE_LOG_FD
if
eval
"$NM"
conftest
.$
ac_objext
\|
"$lt_cv_sys_global_symbol_pipe"
\>
$
nlist
2
>&
AS_MESSAGE_LOG_FD
&&
test
-
s
"$nlist"
;
then
#
Try
sorting
and
uniquifying
the
output
.
if
sort
"$nlist"
|
uniq
>
"$nlist"
T
;
then
mv
-
f
"$nlist"
T
"$nlist"
...
...
@@ -6438,7 +6439,7 @@ if test yes != "$_lt_caught_CXX_error"; then
# Commands to make compiler produce verbose output that lists
# what "
hidden
" libraries, object files and flags are used when
# linking a shared library.
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "
^
Configured
with
:
" | $GREP "
\-
L
"'
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "
^
Configured
with
:
" | $GREP "
\-
L
"'
else
GXX=no
...
...
@@ -6813,7 +6814,7 @@ if test yes != "$_lt_caught_CXX_error"; then
#
explicitly
linking
system
object
files
so
we
need
to
strip
them
#
from
the
output
so
that
they
don
't get included in the library
# dependencies.
output_verbose_link_cmd='
templist
=`($
CC
-
b
$
CFLAGS
-
v
conftest
.$
objext
2
>&
1
)
|
$
EGREP
"\-L"
`;
list
=
;
for
z
in
$
templist
;
do
case
$
z
in
conftest
.$
objext
)
list
=
"$list $z"
;;
*.$
objext
);;
*)
list
=
"$list $z"
;;
esac
;
done
;
func_echo_all
"$list"
'
output_verbose_link_cmd='
templist
=`($
CC
-
b
$
CFLAGS
-
v
conftest
.$
objext
2
>&
1
)
|
$
EGREP
"
\-L"
`;
list
=
;
for
z
in
$
templist
;
do
case
$
z
in
conftest
.$
objext
)
list
=
"$list $z"
;;
*.$
objext
);;
*)
list
=
"$list $z"
;;
esac
;
done
;
func_echo_all
"$list"
'
;;
*)
if test yes = "$GXX"; then
...
...
@@ -6878,7 +6879,7 @@ if test yes != "$_lt_caught_CXX_error"; then
#
explicitly
linking
system
object
files
so
we
need
to
strip
them
#
from
the
output
so
that
they
don
't get included in the library
# dependencies.
output_verbose_link_cmd='
templist
=`($
CC
-
b
$
CFLAGS
-
v
conftest
.$
objext
2
>&
1
)
|
$
GREP
"\-L"
`;
list
=
;
for
z
in
$
templist
;
do
case
$
z
in
conftest
.$
objext
)
list
=
"$list $z"
;;
*.$
objext
);;
*)
list
=
"$list $z"
;;
esac
;
done
;
func_echo_all
"$list"
'
output_verbose_link_cmd='
templist
=`($
CC
-
b
$
CFLAGS
-
v
conftest
.$
objext
2
>&
1
)
|
$
GREP
"
\-L"
`;
list
=
;
for
z
in
$
templist
;
do
case
$
z
in
conftest
.$
objext
)
list
=
"$list $z"
;;
*.$
objext
);;
*)
list
=
"$list $z"
;;
esac
;
done
;
func_echo_all
"$list"
'
;;
*)
if test yes = "$GXX"; then
...
...
@@ -7217,7 +7218,7 @@ if test yes != "$_lt_caught_CXX_error"; then
# Commands to make compiler produce verbose output that lists
# what "
hidden
" libraries, object files and flags are used when
# linking a shared library.
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "
^
Configured
with
:
" | $GREP "
\-
L
"'
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "
^
Configured
with
:
" | $GREP "
\-
L
"'
else
# FIXME: insert proper C++ library support
...
...
@@ -7301,7 +7302,7 @@ if test yes != "$_lt_caught_CXX_error"; then
# Commands to make compiler produce verbose output that lists
# what "
hidden
" libraries, object files and flags are used when
# linking a shared library.
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "
^
Configured
with
:
" | $GREP "
\-
L
"'
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "
^
Configured
with
:
" | $GREP "
\-
L
"'
else
# g++ 2.7 appears to require '-G' NOT '-shared' on this
# platform.
...
...
@@ -7312,7 +7313,7 @@ if test yes != "$_lt_caught_CXX_error"; then
# Commands to make compiler produce verbose output that lists
# what "
hidden
" libraries, object files and flags are used when
# linking a shared library.
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "
^
Configured
with
:
" | $GREP "
\-
L
"'
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "
^
Configured
with
:
" | $GREP "
\-
L
"'
fi
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
...
...
utils/Makefile.in
View file @
eb1d7c5f
# Makefile.in generated by automake 1.1
5
from Makefile.am.
# Makefile.in generated by automake 1.1
6.1
from Makefile.am.
# @configure_input@
# Copyright (C) 1994-201
4
Free Software Foundation, Inc.
# Copyright (C) 1994-201
8
Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
...
...
@@ -144,7 +144,9 @@ am__v_at_0 = @
am__v_at_1
=
DEFAULT_INCLUDES
=
-I
.@am__isrc@
-I
$(top_builddir)
depcomp
=
$(SHELL)
$(top_srcdir)
/build-aux/depcomp
am__depfiles_maybe
=
depfiles
am__maybe_remake_depfiles
=
depfiles
am__depfiles_remade
=
./
$(DEPDIR)
/nfbpf_compile.Po
\
./
$(DEPDIR)
/nfnl_osf.Po ./
$(DEPDIR)
/nfsynproxy.Po
am__mv
=
mv
-f
COMPILE
=
$(CC)
$(DEFS)
$(DEFAULT_INCLUDES)
$(INCLUDES)
$(AM_CPPFLAGS)
\
$(CPPFLAGS)
$(AM_CFLAGS)
$(CFLAGS)
...
...
@@ -400,8 +402,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
*
config.status
*
)
\
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
;;
\
*
)
\
echo
' cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/$@
$(am__depfiles
_maybe
)
'
;
\
cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/
$@
$(am__depfiles
_maybe
)
;;
\
echo
' cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/$@
$(am__
maybe_remake_
depfiles)
'
;
\
cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/
$@
$(am__
maybe_remake_
depfiles)
;;
\
esac
;
$(top_builddir)/config.status
:
$(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
...
...
@@ -484,9 +486,15 @@ mostlyclean-compile:
distclean-compile
:
-
rm
-f
*
.tab.c
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/nfbpf_compile.Po@am__quote@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/nfnl_osf.Po@am__quote@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/nfsynproxy.Po@am__quote@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/nfbpf_compile.Po@am__quote@
# am--include-marker
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/nfnl_osf.Po@am__quote@
# am--include-marker
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/nfsynproxy.Po@am__quote@
# am--include-marker
$(am__depfiles_remade)
:
@
$(MKDIR_P)
$
(
@D
)
@
echo
'# dummy'
>
$@
-t
&&
$(am__mv)
$@
-t
$@
am--depfiles
:
$(am__depfiles_remade)
.c.o
:
@am__fastdepCC_TRUE@
$(AM_V_CC)$(COMPILE)
-MT
$@
-MD
-MP
-MF
$(DEPDIR)/$*.Tpo
-c
-o
$@
$<
...
...
@@ -631,7 +639,10 @@ cscopelist-am: $(am__tagged_files)
distclean-tags
:
-
rm
-f
TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir
:
$(DISTFILES)
distdir
:
$(BUILT_SOURCES)
$(MAKE)
$(AM_MAKEFLAGS)
distdir-am
distdir-am
:
$(DISTFILES)
@
srcdirstrip
=
`
echo
"
$(srcdir)
"
|
sed
's/[].[^$$\\*]/\\\\&/g'
`
;
\
topsrcdirstrip
=
`
echo
"
$(top_srcdir)
"
|
sed
's/[].[^$$\\*]/\\\\&/g'
`
;
\
list
=
'
$(DISTFILES)
'
;
\
...
...
@@ -705,7 +716,9 @@ clean-am: clean-generic clean-libtool clean-sbinPROGRAMS \
mostlyclean-am
distclean
:
distclean-am
-
rm
-rf
./
$(DEPDIR)
-
rm
-f
./
$(DEPDIR)
/nfbpf_compile.Po
-
rm
-f
./
$(DEPDIR)
/nfnl_osf.Po
-
rm
-f
./
$(DEPDIR)
/nfsynproxy.Po
-
rm
-f
Makefile
distclean-am
:
clean-am distclean-compile distclean-generic
\
distclean-tags
...
...
@@ -751,7 +764,9 @@ install-ps-am:
installcheck-am
:
maintainer-clean
:
maintainer-clean-am
-
rm
-rf
./
$(DEPDIR)
-
rm
-f
./
$(DEPDIR)
/nfbpf_compile.Po
-
rm
-f
./
$(DEPDIR)
/nfnl_osf.Po
-
rm
-f
./
$(DEPDIR)
/nfsynproxy.Po
-
rm
-f
Makefile
maintainer-clean-am
:
distclean-am maintainer-clean-generic
...
...
@@ -775,9 +790,9 @@ uninstall-man: uninstall-man8
.MAKE
:
install-am install-strip
.PHONY
:
CTAGS GTAGS TAGS all all-am check check-am clean
clean-generic
\
clean-libtool clean-sbinPROGRAMS cscopelist-am
ctags ctags-am
\
distclean distclean-compile distclean-generic
\
.PHONY
:
CTAGS GTAGS TAGS all all-am
am--depfiles
check check-am clean
\
clean-generic
clean-libtool clean-sbinPROGRAMS cscopelist-am
\
ctags ctags-am
distclean distclean-compile distclean-generic
\
distclean-libtool distclean-tags distdir dvi dvi-am html
\
html-am info info-am install install-am install-data
\
install-data-am install-dvi install-dvi-am install-exec
\
...
...
utils/nfnl_osf.c
View file @
eb1d7c5f
...
...
@@ -378,9 +378,11 @@ static int osf_load_line(char *buffer, int len, int del)
memset
(
buf
,
0
,
sizeof
(
buf
));
if
(
del
)
nfnl_fill_hdr
(
nfnlssh
,
nmh
,
0
,
AF_UNSPEC
,
0
,
OSF_MSG_REMOVE
,
NLM_F_REQUEST
);
nfnl_fill_hdr
(
nfnlssh
,
nmh
,
0
,
AF_UNSPEC
,
0
,
OSF_MSG_REMOVE
,
NLM_F_ACK
|
NLM_F_REQUEST
);
else
nfnl_fill_hdr
(
nfnlssh
,
nmh
,
0
,
AF_UNSPEC
,
0
,
OSF_MSG_ADD
,
NLM_F_REQUEST
|
NLM_F_CREATE
);
nfnl_fill_hdr
(
nfnlssh
,
nmh
,
0
,
AF_UNSPEC
,
0
,
OSF_MSG_ADD
,
NLM_F_ACK
|
NLM_F_REQUEST
|
NLM_F_CREATE
);
nfnl_addattr_l
(
nmh
,
sizeof
(
buf
),
OSF_ATTR_FINGER
,
&
f
,
sizeof
(
struct
xt_osf_user_finger
));
...
...
@@ -390,7 +392,7 @@ static int osf_load_line(char *buffer, int len, int del)
static
int
osf_load_entries
(
char
*
path
,
int
del
)
{
FILE
*
inf
;
int
err
=
0
;
int
err
=
0
,
lineno
=
0
;
char
buf
[
1024
];
inf
=
fopen
(
path
,
"r"
);
...
...
@@ -400,7 +402,9 @@ static int osf_load_entries(char *path, int del)
}
while
(
fgets
(
buf
,
sizeof
(
buf
),
inf
))
{
int
len
;
int
len
,
rc
;
lineno
++
;
if
(
buf
[
0
]
==
'#'
||
buf
[
0
]
==
'\n'
||
buf
[
0
]
==
'\r'
)
continue
;
...
...
@@ -412,9 +416,11 @@ static int osf_load_entries(char *path, int del)
buf
[
len
]
=
'\0'
;
err
=
osf_load_line
(
buf
,
len
,
del
);
if
(
err
)
break
;
rc
=
osf_load_line
(
buf
,
len
,
del
);
if
(
rc
&&
(
!
del
||
errno
!=
ENOENT
))
{
ulog_err
(
"Failed to load line %d"
,
lineno
);
err
=
rc
;
}
memset
(
buf
,
0
,
sizeof
(
buf
));
}
...
...
@@ -446,6 +452,7 @@ int main(int argc, char *argv[])
if
(
!
fingerprints
)
{
err
=
-
ENOENT
;
ulog
(
"Missing fingerprints file argument.
\n
"
);
goto
err_out_exit
;
}
...
...
Prev
1
…
3
4
5
6
7
Next
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