[Bug manual/27207] mount examples don't match the mount function signature
mtk.manpages at gmail dot com
sourceware-bugzilla@sourceware.org
Wed Jan 20 12:14:03 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=27207
--- Comment #2 from Michael Kerrisk <mtk.manpages at gmail dot com> ---
I confirm this bug.
However, since mount(2) is not variadic, the change should probably be:
----
@smallexample
@group
#include <sys/mount.h>
mount("/dev/hdb", "/cdrom", "", MS_MGC_VAL | MS_RDONLY | MS_NOSUID, NULL);
mount("/dev/hda2", "/mnt", "", MS_MGC_VAL | MS_REMOUNT, NULL);
@end group
@end smallexample
----
(That is, add the fifth argument in each call.)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list