Skip to content

Commit

Permalink
Merge pull request #25 from monich/lstat
Browse files Browse the repository at this point in the history
Use lstat to read information about the link
  • Loading branch information
philippedeswert committed Mar 30, 2015
2 parents f6f21fb + 56c6f97 commit b0df07a
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 b0df07a

Please sign in to comment.