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
                          _/  _/   _/
                         _/  _/_/_/             
                    _/  _/  _/    _/
[EMAIL PROTECTED]     _/_/   _/_/_/            use Std::Disclaimer;

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to