Date: Mon, 24 Apr 2006 07:20:21 GMT From: Maxim Konovalov <maxim@macomnet.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/96248: vipw fail on RO /etc Message-ID: <200604240720.k3O7KLBe017610@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/96248; it has been noted by GNATS.
From: Maxim Konovalov <maxim@macomnet.ru>
To: Alex Kozlov <spam@rm-rf.kiev.ua>
Cc: bug-followup@freebsd.org
Subject: Re: bin/96248: vipw fail on RO /etc
Date: Mon, 24 Apr 2006 11:17:08 +0400 (MSD)
[...]
> if rootfs mount as read-only, vipw fall to execute witch vipw:
> pw_tmp(): Read-only file system error.
> >How-To-Repeat:
> #mount |grep -w /
> /dev/da0s1 on / (ufs, local, read-only)
>
> #vipw
> vipw: pw_tmp(): Read-only file system
> >Fix:
> Change temporary file patch in pw_tmp() from
>
> if (snprintf(tempname, sizeof(tempname), "%.*spw.XXXXXX",
> (int)(p - masterpasswd), masterpasswd) >= (int)sizeof(tempname)) {
>
> to more appropriate?
And what is more appropriate?
--
Maxim Konovalov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604240720.k3O7KLBe017610>
