summaryrefslogtreecommitdiff
path: root/tmpfs
diff options
context:
space:
mode:
Diffstat (limited to 'tmpfs')
-rw-r--r--tmpfs/ChangeLog5
-rw-r--r--tmpfs/tmpfs.c2
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");