Skip to content

Commit

Permalink
[usb-moded] Use lstat to read information about the link
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Mar 30, 2015
1 parent f6f21fb commit 56c6f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_moded-network.c
Expand Up @@ -387,7 +387,7 @@ static int write_udhcpd_conf(struct ipforward_data *ipforward, struct mode_list_
log_debug("/etc/udhcpd.conf written.\n");

/* check if it is a symlink, if not remove and link, create the link if missing */
test = stat("/etc/udhcpd.conf", &st);
test = lstat("/etc/udhcpd.conf", &st);
/* if stat fails there is no file or link */
if(test == -1)
goto link;
Expand Down

0 comments on commit 56c6f97

Please sign in to comment.