mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 08:29:45 +00:00
fdisk: fix a case where break was reached only for DOS labels
This commit is contained in:
parent
680b86afbb
commit
a5549c9617
@ -97,7 +97,6 @@ char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask)
|
|||||||
uint32_t ad, host_ad;
|
uint32_t ad, host_ad;
|
||||||
int host = 0;
|
int host = 0;
|
||||||
|
|
||||||
/* Grmpf. -FvK */
|
|
||||||
if (s_in->sin_family != AF_INET) {
|
if (s_in->sin_family != AF_INET) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
bb_error_msg("rresolve: unsupported address family %d!",
|
bb_error_msg("rresolve: unsupported address family %d!",
|
||||||
@ -195,7 +194,6 @@ char *INET6_rresolve(struct sockaddr_in6 *sin6, int numeric)
|
|||||||
char name[128];
|
char name[128];
|
||||||
int s;
|
int s;
|
||||||
|
|
||||||
/* Grmpf. -FvK */
|
|
||||||
if (sin6->sin6_family != AF_INET6) {
|
if (sin6->sin6_family != AF_INET6) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
bb_error_msg("rresolve: unsupport address family %d!",
|
bb_error_msg("rresolve: unsupport address family %d!",
|
||||||
@ -223,4 +221,4 @@ char *INET6_rresolve(struct sockaddr_in6 *sin6, int numeric)
|
|||||||
return xstrdup(name);
|
return xstrdup(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_FEATURE_IPV6 */
|
#endif /* CONFIG_FEATURE_IPV6 */
|
||||||
|
@ -1734,9 +1734,8 @@ change_sysid(void)
|
|||||||
"to %x (%s)\n", i + 1, sys,
|
"to %x (%s)\n", i + 1, sys,
|
||||||
partition_type(sys));
|
partition_type(sys));
|
||||||
ptes[i].changed = 1;
|
ptes[i].changed = 1;
|
||||||
if (is_dos_partition(origsys) ||
|
//if (is_dos_partition(origsys) || is_dos_partition(sys))
|
||||||
is_dos_partition(sys))
|
// dos_changed = 1;
|
||||||
//dos_changed = 1;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user