Navigation Menu

Skip to content

Commit

Permalink
[network] Fix fall-out of changing udhcp conf stuff to defines
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Mar 13, 2015
1 parent 5065e1e commit 1a58426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/usb_moded-network.c
Expand Up @@ -327,7 +327,7 @@ static int write_udhcpd_conf(struct ipforward_data *ipforward, struct mode_list_

/* /tmp and /run is often tmpfs, so we avoid writing to flash */
mkdir(UDHCP_CONFIG_DIR, 0664);
conffile = fopen("UDHCP_CONFIG_PATH", "w");
conffile = fopen(UDHCP_CONFIG_PATH, "w");
if(conffile == NULL)
{
log_debug("Error creating /etc/udhcpd.conf!\n");
Expand Down Expand Up @@ -400,7 +400,7 @@ static int write_udhcpd_conf(struct ipforward_data *ipforward, struct mode_list_
goto end;

link:
symlink("UDHCP_CONFIG_PATH", "/etc/udhcpd.conf");
symlink(UDHCP_CONFIG_PATH, "/etc/udhcpd.conf");

end:

Expand Down

0 comments on commit 1a58426

Please sign in to comment.