Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1956220 Details for
Bug 2185185
"net_del_dns" command doesn't work
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch fixing the implementation of grub_cmd_del_dns()
1001-dns-fixed-removal-of-DNS-server.patch (text/plain), 1011 bytes, created by
Renaud Métrich
on 2023-04-07 11:14:36 UTC
(
hide
)
Description:
Patch fixing the implementation of grub_cmd_del_dns()
Filename:
MIME Type:
Creator:
Renaud Métrich
Created:
2023-04-07 11:14:36 UTC
Size:
1011 bytes
patch
obsolete
>From 56b55bc5d4fc83c6cb9fe392d04878ec753229c2 Mon Sep 17 00:00:00 2001 >From: Fedora Ninjas <grub2-owner@fedoraproject.org> >Date: Fri, 7 Apr 2023 11:50:42 +0200 >Subject: [PATCH] dns: fixed removal of DNS server > >Signed-off-by: Fedora Ninjas <grub2-owner@fedoraproject.org> >--- > grub-core/net/dns.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/grub-core/net/dns.c b/grub-core/net/dns.c >index 17961a9..e9edf5d 100644 >--- a/grub-core/net/dns.c >+++ b/grub-core/net/dns.c >@@ -765,11 +765,14 @@ grub_cmd_del_dns (struct grub_command *cmd __attribute__ ((unused)), > > if (argc != 1) > return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("one argument expected")); >- err = grub_net_resolve_address (args[1], &server); >+ >+ err = grub_net_resolve_address (args[0], &server); > if (err) > return err; > >- return grub_net_add_dns_server (&server); >+ grub_net_remove_dns_server (&server); >+ >+ return GRUB_ERR_NONE; > } > > static grub_command_t cmd, cmd_add, cmd_del, cmd_list; >-- >2.39.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2185185
: 1956220