X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmount%2Fstropts.c;h=cdd610ee8edbd028ee7f80c151c64c2ed350c97f;hb=5f7cc524008a7dc548a71f4c7b0d39759371a37a;hp=31df51b958b8d08be9b28b1428759d1cd1b53b71;hpb=72bc295da78bafff92762b8afbb298ac16d1ff43;p=nfs-utils.git diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index 31df51b..cdd610e 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -21,6 +21,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include @@ -248,7 +252,6 @@ static int set_mandatory_options(const char *type, static int is_permanent_error(int error) { switch (error) { - case EACCES: case ESTALE: case ETIMEDOUT: case ECONNREFUSED: @@ -304,9 +307,6 @@ static struct mount_options *rewrite_mount_options(char *str) if (option) mnt_server.pmap.pm_port = atoi(option); mnt_server.pmap.pm_prog = MOUNTPROG; - option = po_get(options, "mountprog"); - if (option) - mnt_server.pmap.pm_prog = atoi(option); option = po_get(options, "mountvers"); if (option) mnt_server.pmap.pm_vers = atoi(option);