~ubuntu-branches/debian/stretch/nfs-utils/stretch

« back to all changes in this revision

Viewing changes to utils/mount/nfsmount.c

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar, Anibal Monsalve Salazar, Ben Hutchings
  • Date: 2010-04-06 16:11:22 UTC
  • mfrom: (1.2.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20100406161122-x7erw0q8xiitoyp6
Tags: 1:1.2.2-1
[ Anibal Monsalve Salazar ]
* New upstream release 
  Build depend on libcap-dev
  Set configure option --enable-nfsv41
* X-ref nfsd({7,8})
  02-524255-manpages.patch by Cyril Brulebois
  Closes: 524255

[ Ben Hutchings ]
* Change maintainer to Debian kernel team; move Aníbal to uploaders and
  add myself to uploaders
* Check for nfsd in /proc/filesystems rather than looking for signs of it in
  /proc/kallsyms (Closes: #563104, #572736)
* Document the -n option to svcgssd, thanks to Alberto Gonzalez Iniesta
  (Closes: #451402, #550270)
* Replace upstream reference in package descriptions with Homepage fields,
  and do not refer to the obsolete CVS repository
* Update policy version to 3.8.4; no changes required
* Override lintian error 'init.d-script-missing-dependency-on-remote_fs';
  the init script does work without /usr mounted

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
        struct pmap *mnt_pmap = &mnt_server->pmap;
171
171
        struct pmap *nfs_pmap = &nfs_server->pmap;
172
172
        int len;
173
 
        char *opt, *opteq, *p, *opt_b;
 
173
        char *opt, *opteq, *p, *opt_b, *tmp_opts;
174
174
        char *mounthost = NULL;
175
175
        char cbuf[128];
176
176
        int open_quote = 0;
179
179
        *bg = 0;
180
180
 
181
181
        len = strlen(new_opts);
182
 
        for (p=old_opts, opt_b=NULL; p && *p; p++) {
 
182
        tmp_opts = xstrdup(old_opts);
 
183
        for (p=tmp_opts, opt_b=NULL; p && *p; p++) {
183
184
                if (!opt_b)
184
185
                        opt_b = p;              /* begin of the option item */
185
186
                if (*p == '"')
457
458
                        goto out_bad;
458
459
                *mnt_server->hostname = mounthost;
459
460
        }
 
461
        free(tmp_opts);
460
462
        return 1;
461
463
 bad_parameter:
462
464
        nfs_error(_("%s: Bad nfs mount parameter: %s\n"), progname, opt);
463
465
 out_bad:
 
466
        free(tmp_opts);
464
467
        return 0;
465
468
}
466
469