summaryrefslogtreecommitdiffstats
path: root/commands/tftp.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2014-02-07 22:28:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-10 09:02:21 +0100
commitf97f4b6571d1297973f08b9f921778e0b2e7f064 (patch)
tree2f270dff58b9b90d11c455f6498389177ec1bd21 /commands/tftp.c
parentf43f827bb4bc03526cbfa4ac58fac6747e3caddb (diff)
downloadbarebox-f97f4b6571d1297973f08b9f921778e0b2e7f064.tar.gz
mount: support filesystem options passed via -o
Similar to mount(8) the barebox command mount now supports passing a string to the file system driver via -o. This is used in the next commit to let the user specify port numbers for nfs mounts. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/tftp.c')
-rw-r--r--commands/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/tftp.c b/commands/tftp.c
index c83d174..64cab2f 100644
--- a/commands/tftp.c
+++ b/commands/tftp.c
@@ -72,7 +72,7 @@ static int do_tftpb(int argc, char *argv[])
goto err_free;
ip = net_get_serverip();
- ret = mount(ip_to_string(ip), "tftp", TFTP_MOUNT_PATH);
+ ret = mount(ip_to_string(ip), "tftp", TFTP_MOUNT_PATH, NULL);
if (ret)
goto err_rmdir;