X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmount%2Fstropts.c;h=cdd610ee8edbd028ee7f80c151c64c2ed350c97f;hb=0930b25ee3a1eb28b957cdc70c9a1958812d895f;hp=cf403133296bd034497f795471f55c7932c256b8;hpb=4d5e8d3e948a83e3960d63ff2d537a62bee4fa4a;p=nfs-utils.git diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index cf40313..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); @@ -317,9 +317,6 @@ static struct mount_options *rewrite_mount_options(char *str) po_remove_all(options, "port"); } nfs_server.pmap.pm_prog = NFS_PROGRAM; - option = po_get(options, "nfsprog"); - if (option) - nfs_server.pmap.pm_prog = atoi(option); option = po_get(options, "nfsvers"); if (option) {