~ubuntu-branches/ubuntu/wily/nilfs-tools/wily-proposed

« back to all changes in this revision

Viewing changes to sbin/mount/mount_opts.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2010-05-03 21:19:37 UTC
  • mfrom: (1.2.1 upstream) (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100503211937-gopwb85vxi3606n2
Tags: 2.0.18-2
Dropping la files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
        if ((len -= strlen(opt)) > 0)
195
195
                strcat(extra_opts, opt);
196
196
}
197
 
  
 
197
 
198
198
/* Take -o options list and compute 4th and 5th args to mount(2).  flags
199
199
   gets the standard options (indicated by bits) and extra_opts all the rest */
200
200
void parse_opts(const char *options, int *flags, char **extra_opts)
209
209
                char *opt;
210
210
                int len = strlen(opts) + 20;
211
211
 
212
 
                *extra_opts = xmalloc(len); 
 
212
                *extra_opts = xmalloc(len);
213
213
                **extra_opts = '\0';
214
214
 
215
215
                for (opt = strtok(opts, ","); opt; opt = strtok(NULL, ","))