Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 398c866

Browse files
committed
cfginterfaces CHANGE on debian the origin can be undetermined
1 parent 981188e commit 398c866

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

transAPI/cfginterfaces/iface_if.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3344,10 +3344,7 @@ int iface_get_ipv4_ipaddrs(unsigned char config, const char* if_name, struct ip_
33443344
origin = read_ifcfg_var(if_name, "BOOTPROTO", NULL);
33453345
#endif
33463346
#ifdef DEBIAN
3347-
if ((origin = read_iface_method(1, if_name)) == NULL) {
3348-
asprintf(msg, "%s: failed to read the method of %s from \"%s\".", __func__, if_name, IFCFG_FILES_PATH);
3349-
return EXIT_FAILURE;
3350-
}
3347+
origin = read_iface_method(1, if_name);
33513348
#endif
33523349

33533350
/* static is learned from the static_ips struct,
@@ -3654,10 +3651,7 @@ int iface_get_ipv6_ipaddrs(unsigned char config, const char* if_name, struct ip_
36543651
#endif
36553652

36563653
#ifdef DEBIAN
3657-
if ((origin = read_iface_method(0, if_name)) == NULL) {
3658-
asprintf(msg, "%s: failed to read the method of %s from \"%s\".", __func__, if_name, IFCFG_FILES_PATH);
3659-
return EXIT_FAILURE;
3660-
}
3654+
origin = read_iface_method(0, if_name);
36613655
#endif
36623656

36633657
/* static learned from static_ips */

0 commit comments

Comments
 (0)