Date: Sat, 29 Sep 2001 14:32:31 -0700 From: Jos Backus <josb@cncdsl.com> To: freebsd-current@freebsd.org Subject: mdmfs mount_mfs compatibility bug? Message-ID: <20010929143231.A659@lizzy.bugworks.com>
next in thread | raw e-mail | index | archive | help
It looks like /tmp is not getting the right permissions set (1777).
/etc/fstab:
/dev/md0 /tmp mfs rw,nosuid,nodev,-s=32m,-X 0 0
lizzy:/sbin% ls -li mdmfs mount_mfs
38 -r-xr-xr-x 2 root wheel 342876 Sep 29 14:17 mdmfs
38 -r-xr-xr-x 2 root wheel 342876 Sep 29 14:17 mount_mfs
Applying this patch
--- mdmfs.c.orig Sat Sep 29 14:11:59 2001
+++ mdmfs.c Sat Sep 29 14:11:41 2001
@@ -119,6 +119,8 @@
/* If we were started as mount_*, imply -C. */
if (strncmp(getprogname(), "mount_", 6) == 0)
compat = true;
+ fprintf(stderr, "getprogname(%s), compat=%d\n",
+ getprogname(), compat);
while ((ch = getopt(argc, argv,
"a:b:Cc:Dd:e:F:f:hi:LMm:Nn:O:o:p:Ss:t:Uw:X")) != -1)
during bootup shows
getprogname(mfs), compat=0
which explains why it doesn't happen (compat needs to be true). So
getprogname() returns ``mfs'' instead of the expected ``mount_mfs''.
Is this a bug in mount(8) or what? Am I missing something? The manpage clearly
suggests that this should Just Work.
Thanks,
--
Jos Backus _/ _/_/_/ Santa Clara, CA
_/ _/ _/
_/ _/_/_/
_/ _/ _/ _/
josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010929143231.A659>
