mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-08-04 02:15:58 -04:00
main: print a warning if an argument is ignored
Closes: https://github.com/containers/fuse-overlayfs/issues/339 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
1746aef29c
commit
952fa4dc28
3
main.c
3
main.c
@ -5454,7 +5454,10 @@ fuse_opt_proc (void *data, const char *arg, int key, struct fuse_args *outargs)
|
|||||||
}
|
}
|
||||||
/* Ignore unknown arguments. */
|
/* Ignore unknown arguments. */
|
||||||
if (key == -1)
|
if (key == -1)
|
||||||
|
{
|
||||||
|
fprintf (stderr, "unknown argument ignored: %s\n", arg);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user