Hello All, I am trying to test DNS Name resolution but observed issue of file opening fails while running.
After debugging we have observed fails at following code: stream = fopen(CONFIG_NETDB_RESOLVCONF_PATH, "at"); in libs/libc/netdb/lib_dnsaddserver.c. We have analyzed the issue and observed trying to open resolv.conf in "at" mode but There is no such mode as "at" in C programming. So We have experimented with "a+" "w+" etc but these did not work because of the "resolv.conf" file resides in /etc directory in ROMFS, ROMFS supports only "r" mode. So modified the code as mentioned below. stream = fopen(CONFIG_NETDB_RESOLVCONF_PATH, "at"); must be changed to stream = fopen(CONFIG_NETDB_RESOLVCONF_PATH, "r"); With this change it is working properly. Kindly confirm our understanding. Thanks & Regards, Surya ________________________________ Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient of this message , or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited. Email transmission cannot be guaranteed to be secure or error-free, as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender, therefore, does not accept liability for any errors, omissions or contaminations in the contents of this message which might have occurred as a result of email transmission. If verification is required, please request for a hard-copy version. ________________________________