diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2005-03-20 02:21:31 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2005-03-20 02:21:31 +0000 |
commit | d68f1a3c3baaa650d10a941d53bdd894eaa499af (patch) | |
tree | 79e74799499f0c2d2f78f55ad4e6f8c4e31f1e11 /tmpfs | |
parent | 9ac24fc02219f3b7bdf0cdfdf6d557a215f060f0 (diff) |
2005-03-20 Marcus Brinkmann <marcus@gnu.org>
* tmpfs.c (parse_opt): Use the right argument for parsing the
mode.
Diffstat (limited to 'tmpfs')
-rw-r--r-- | tmpfs/ChangeLog | 5 | ||||
-rw-r--r-- | tmpfs/tmpfs.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tmpfs/ChangeLog b/tmpfs/ChangeLog index ba575a7b..a5cb2989 100644 --- a/tmpfs/ChangeLog +++ b/tmpfs/ChangeLog @@ -1,3 +1,8 @@ +2005-03-20 Marcus Brinkmann <marcus@gnu.org> + + * tmpfs.c (parse_opt): Use the right argument for parsing the + mode. + 2002-06-14 Roland McGrath <roland@frob.com> * tmpfs.c (main): If get_privileged_ports fails with EPERM, try to diff --git a/tmpfs/tmpfs.c b/tmpfs/tmpfs.c index 928ebaa4..1539054f 100644 --- a/tmpfs/tmpfs.c +++ b/tmpfs/tmpfs.c @@ -139,7 +139,7 @@ parse_opt (int key, char *arg, struct argp_state *state) case 'm': /* --mode=OCTAL */ { char *end = NULL; - mode_t mode = strtoul (state->argv[state->next], &end, 8); + mode_t mode = strtoul (arg, &end, 8); if (end == NULL || end == arg) { argp_error (state, "argument must be an octal number"); |